

def _init_cmd(self, command, expect=None):
    ret = subprocess.call([self.supervisorctl_path, command, self.resource.service_name], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    if ((expect is not None) and (expect != ret)):
        raise Fail(('%r command %s for service %s failed' % (expect, command, self.resource.service_name)))
    return ret

dataset/ETHPy150Open samuel/kokki/kokki/cookbooks/supervisor/libraries/providers.py SupervisorServiceProvider._init_cmd/VarMisuse@74/98 `self`->`expect`