浏览代码

AMBARI-10011 - Restarting HBase with Ranger Enabled Does Not Log Proper Exception (jonathanhurley)

Jonathan Hurley 10 年之前
父节点
当前提交
7d8b92234a

+ 1 - 1
ambari-common/src/main/python/resource_management/libraries/functions/ranger_functions.py

@@ -122,7 +122,7 @@ class Rangeradmin:
     except urllib2.URLError, e:
       if isinstance(e, urllib2.HTTPError):
         Logger.error("HTTP Code: {0}".format(e.code))
-        Logger.error("HTTP Data: {0}".foramt(e.read()))
+        Logger.error("HTTP Data: {0}".format(e.read()))
       else:
         Logger.error("Error: {0}".format(e.reason))
       return None