Skip to content

Commit cc8458a

Browse files
committed
CH-240 fix unit tests
1 parent 2893b16 commit cc8458a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libraries/cloudharness-common/cloudharness/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_registry_name(cls):
7070

7171
@classmethod
7272
def get_registry_secret(cls):
73-
return cls.get_configuration()['registry']['secret']['name']
73+
return cls.get_configuration()['registry'].get('secret', {}).get('name', '')
7474

7575
@classmethod
7676
def is_secured(cls):

libraries/cloudharness-common/tests/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace: ch
77
mainapp: accounts
88
registry:
99
name: ''
10-
secret: ''
10+
secret: {}
1111
tag: latest
1212
apps:
1313
volumemanager:

0 commit comments

Comments
 (0)