def __init__(self, args): super(ConsulVCommand, self).__init__(args) sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from v_consul import ConsulV self._consul = ConsulV()
class ConsulVCommand(VCommand): """Consul related commands.""" name = "consul" def __init__(self, args): super(ConsulVCommand, self).__init__(args) from v_consul import ConsulV self._consul = ConsulV() def process(self): """Validate consul status.""" self._consul.validate(self.v_type, self.args)
class ConsulVCommand(VCommand): """Consul related commands.""" name = "consul" def __init__(self, args): super(ConsulVCommand, self).__init__(args) sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from v_consul import ConsulV self._consul = ConsulV() def process(self): """Validate consul status.""" self._consul.validate(self.v_type, self.args)
def __init__(self, args): super(ConsulVCommand, self).__init__(args) from v_consul import ConsulV self._consul = ConsulV()