Explorar o código

HUE-4157 [aws] Fix aws config check

Add additional check for access_key_id value
Jenny Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
4621ea9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):