Browse Source

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

Siddharth Wagle 11 years ago
parent
commit
c22f056b74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-server/src/main/python/ambari-server.py

+ 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