瀏覽代碼

AMBARI-12929. Configs validation fails due to 'getErrorItem() takes exactly 2 arguments (3 given)' (srimanth)

Srimanth Gunturi 9 年之前
父節點
當前提交
ef44337d0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py

@@ -617,7 +617,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
     mountPoint = getMountPointForDir(dir, mountPoints.keys())
 
     if not mountPoints:
-      return self.getErrorItem("No disk info found on host {0}", hostInfo["host_name"])
+      return self.getErrorItem("No disk info found on host %s" % hostInfo["host_name"])
 
     if mountPoints[mountPoint] < reqiuredDiskSpace:
       msg = "Ambari Metrics disk space requirements not met. \n" \