Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Commit

Permalink
Merge pull request #2861 from dkliban/handle-no-selinux-label
Browse files Browse the repository at this point in the history
Adds exception handling for when SELinux is disabled on EL7
  • Loading branch information
dkliban committed Nov 23, 2016
2 parents 676862c + 15d3205 commit 454f099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/pulp/plugins/util/publish_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def process_main(self, item=None):
try:
selinux.restorecon(timestamp_master_dir.encode('utf-8'), recursive=True)
except OSError as e:
if e.errno != errno.EPERM:
if e.errno not in [errno.EPERM, errno.ENODATA]:
raise
except OSError as e:
if e.errno == errno.EXDEV:
Expand Down

0 comments on commit 454f099

Please sign in to comment.