mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
fix pep8 issues
This commit is contained in:
parent
298cf4f5c0
commit
5eb6a30d40
@ -231,11 +231,12 @@ def enabled(name, **kwargs):
|
||||
down_file = os.path.join(SERVICE_DIR, name, 'down')
|
||||
|
||||
return (
|
||||
os.path.isfile(run_file)
|
||||
and os.access(run_file, os.X_OK)
|
||||
and not os.path.isfile(down_file)
|
||||
os.path.isfile(run_file) and
|
||||
os.access(run_file, os.X_OK) and not
|
||||
os.path.isfile(down_file)
|
||||
)
|
||||
|
||||
|
||||
def disabled(name):
|
||||
'''
|
||||
Return True if the named service is enabled, false otherwise
|
||||
|
Loading…
Reference in New Issue
Block a user