exit and warn if no 'dpkg' (probably wrong distro)
This commit is contained in:
parent
82f59bdfcf
commit
98734eb5ca
@ -102,6 +102,10 @@ def handle(name, cfg, cloud, log, args):
|
||||
log.debug("%s: target=%s. nothing to do", name, target)
|
||||
return
|
||||
|
||||
if not util.which('dpkg'):
|
||||
log.warn("%s: 'dpkg' not available. Assuming not ubuntu", name)
|
||||
return
|
||||
|
||||
supported = ('upstart', 'systemd')
|
||||
if target not in supported:
|
||||
log.warn("%s: target set to %s, expected one of: %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user