Browse Source

HUE-4157 [aws] Fix aws config check

Add additional check for access_key_id value
Jenny Kim 9 years ago
parent
commit
4621ea99dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/aws/src/aws/conf.py

+ 1 - 1
desktop/libs/aws/src/aws/conf.py

@@ -53,7 +53,7 @@ AWS_ACCOUNTS = UnspecifiedConfigSection(
 
 
 def is_enabled():
-  return 'default' in AWS_ACCOUNTS.keys()
+  return 'default' in AWS_ACCOUNTS.keys() and AWS_ACCOUNTS['default'].ACCESS_KEY_ID.get().strip() != ''
 
 
 def config_validator(user):