mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #18125 from cvrebert/patch-1
btrfs module: use new-style except-as syntax
This commit is contained in:
commit
b6e6968c22
@ -655,7 +655,7 @@ def properties(obj, type=None, set=None):
|
||||
for keyset in set.split(",")]:
|
||||
cmd.append(key)
|
||||
cmd.append(value)
|
||||
except Exception, ex:
|
||||
except Exception as ex:
|
||||
raise CommandExecutionError(ex)
|
||||
|
||||
out = __salt__['cmd.run_all'](' '.join(cmd))
|
||||
|
Loading…
Reference in New Issue
Block a user