mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix python3 compatibility
This commit is contained in:
parent
426eb92474
commit
9d450f7737
@ -112,7 +112,7 @@ def present(name,
|
||||
ret['result'] = False
|
||||
return ret
|
||||
elif len(uuid_dict) == 1:
|
||||
uuid = uuid_dict.keys()[0]
|
||||
uuid = list(uuid_dict.keys())[0]
|
||||
if present and present['uuid'] != uuid:
|
||||
ret['comment'] = 'Devices MD_UUIDs: {0} differs from present RAID uuid {1}.'.format(uuid, present['uuid'])
|
||||
ret['result'] = False
|
||||
|
Loading…
Reference in New Issue
Block a user