Skip to content

Commit

Permalink
Merge pull request #1090 from hubblestack/MoodyMudit-patch-1
Browse files Browse the repository at this point in the history
bug - value of 'mode' is read as 0 and not 0000
  • Loading branch information
sumanmehta authored May 12, 2021
2 parents 41e639a + 347b205 commit 2cf8894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hubblestack/files/hubblestack_nova/stat_nova.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ def audit(data_list, tags, labels, debug=False, **kwargs):
# getting the stats using salt
if os.path.exists(name):
salt_ret = __mods__['file.stats'](name)
# re-setting the value of mode because when reading profiles, the value is
# read as 0 and not 0000.
if salt_ret.get('mode') == '0000':
salt_ret['mode'] = '0'
else:
salt_ret = {}
if not salt_ret:
Expand Down

0 comments on commit 2cf8894

Please sign in to comment.