Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix overlooked issues in verify_file routine

  • Loading branch information...
commit 51ec6001cbcc62501080b7a4880d4acdade6b6a5 1 parent 11a920b
@thatch45 thatch45 authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 salt/utils/verify.py
View
6 salt/utils/verify.py
@@ -22,6 +22,7 @@
# Import salt libs
from salt.log import is_console_configured
from salt.exceptions import SaltClientError
+import salt.utils
log = logging.getLogger(__name__)
@@ -141,7 +142,10 @@ def verify_files(files, user):
fp_.write('')
stats = os.stat(fn_)
if not uid == stats.st_uid:
- os.chown(fn_, uid, -1)
+ try:
+ os.chown(fn_, uid, -1)
+ except OSError:
+ pass
return True
Please sign in to comment.
Something went wrong with that request. Please try again.