mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix test_delete_missing unit test
This commit is contained in:
parent
f5f7249c37
commit
2855ea3e2e
@ -153,9 +153,9 @@ def delete(path, attribute):
|
||||
try:
|
||||
salt.utils.mac_utils.execute_return_success(cmd)
|
||||
except CommandExecutionError as exc:
|
||||
if 'such file:' in exc.strerror:
|
||||
if 'such file' in exc.strerror:
|
||||
raise CommandExecutionError('File not found: {0}'.format(path))
|
||||
if 'such xattr:' in exc.strerror:
|
||||
if 'such xattr' in exc.strerror:
|
||||
raise CommandExecutionError('Attribute not found: {0}'.format(attribute))
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user