This is an automatically generated e-mail. To reply, visit: http://reviewboard-fedoraserver.rhcloud.com/r/212/ |
src/rolekit/server/rolebase.py (Diff revision 4) | |||
---|---|---|---|
1079 | def cleanup_targets(self): |
||
1080 | # remove extension units |
||
1081 | files = self._settings.get('extension_units', ()) |
||
1082 | |||
1083 | for f in files: |
||
1084 | try: |
||
1085 | os.unlink(f) |
||
1086 | except Exception as e: |
||
1087 | log.warning( |
||
1088 | "Couldn't remove extension unit '{}': {!s}\n".format( |
||
1089 | f, e)) |
||
1090 | else: |
||
1091 | log.debug9("Removed extension unit '{}'\n".format(f)) |
You need to make sure to call
with SystemdJobHandler() as job_handler: job_handler.manager.Reload()
after removing the unit files or else systemd misbehaves.
- Stephen Gallagher
On September 15th, 2015, 3:51 p.m. UTC, Nils Philippsen wrote:
Review request for RoleKit Mailing List, Miloslav Trmac, Nils Philippsen, Stephen Gallagher, and Thomas Woerner.
By Nils Philippsen.
Updated Sept. 15, 2015, 3:51 p.m.
Repository:
rolekit
Description
Testing
Diffs
|