Prechádzať zdrojové kódy

AMBARI-5649. Add postgres external as separate option in ambari-server.py. Attribute Error fix. (swagle)

Siddharth Wagle 11 rokov pred
rodič
commit
c22f056b74

+ 1 - 1
ambari-server/src/main/python/ambari-server.py

@@ -2065,7 +2065,7 @@ def find_jdk():
 # Checks if options determine local DB configuration
 #
 def is_local_database(args):
-  return args.persistence_type == 'local'
+  return hasattr(args, 'persistence_type') and args.persistence_type == 'local'
 
 
 #Check if required jdbc drivers present