You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by zh...@apache.org on 2017/09/11 08:08:08 UTC

ranger git commit: RANGER-1769:The update_property.py should exit the loop to improve execution efficiency once the attribute value is set.

Repository: ranger
Updated Branches:
  refs/heads/master 991481b27 -> 774f55845


RANGER-1769:The update_property.py should exit the loop to improve execution efficiency once the attribute value is set.

Signed-off-by: peng.jianhua <pe...@zte.com.cn>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/774f5584
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/774f5584
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/774f5584

Branch: refs/heads/master
Commit: 774f55845921c6a60ce5c06ccb19e339a5529d49
Parents: 991481b
Author: peng.jianhua <pe...@zte.com.cn>
Authored: Thu Sep 7 21:25:44 2017 +0800
Committer: peng.jianhua <pe...@zte.com.cn>
Committed: Mon Sep 11 16:04:25 2017 +0800

----------------------------------------------------------------------
 security-admin/scripts/update_property.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/774f5584/security-admin/scripts/update_property.py
----------------------------------------------------------------------
diff --git a/security-admin/scripts/update_property.py b/security-admin/scripts/update_property.py
index 80ccdb8..1eab564 100644
--- a/security-admin/scripts/update_property.py
+++ b/security-admin/scripts/update_property.py
@@ -30,6 +30,7 @@ def write_properties_to_xml(xml_path, property_name='', property_value=''):
 			name = child.find("name").text.strip()
 			if name == property_name:
 				child.find("value").text = property_value
+				break
 		xml.write(xml_path)
 		return 0
 	else: