def disable_service(name, client): if FleetCtl._has_service(name, client): fleet_name = FleetCtl._get_unit_name(name, client) client.run('systemctl disable {0}'.format(fleet_name)) else: Systemd.disable_service(name, client)
def disable_service(name, client): fleet_name = FleetCtl._get_unit_name(name, client) return Systemd.disable_service(fleet_name, client)