Bläddra i källkod

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

Srimanth Gunturi 9 år sedan
förälder
incheckning
ef44337d0b

+ 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())
     mountPoint = getMountPointForDir(dir, mountPoints.keys())
 
 
     if not mountPoints:
     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:
     if mountPoints[mountPoint] < reqiuredDiskSpace:
       msg = "Ambari Metrics disk space requirements not met. \n" \
       msg = "Ambari Metrics disk space requirements not met. \n" \