mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add service.is_enabled() helper
Add a simple helper to check whether a service is enabled. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
@@ -83,6 +83,8 @@ def run(args, stdin=None):
|
||||
if p.returncode != 0:
|
||||
raise CalledProcessError(p.returncode, ' '.join(args))
|
||||
|
||||
return (stdout, stderr)
|
||||
|
||||
def file_exists(filename):
|
||||
try:
|
||||
mode = os.stat(filename)[stat.ST_MODE]
|
||||
|
||||
Reference in New Issue
Block a user