def get(self, args, config, connection): group = Group(args['name'], connection=connection) if not group.exists(): print("Error: Group does not exist: {0}".format(args['name'])) sys.exit(1) group.read() self.jprint(group)
def get(self, args, config, connection): group = Group(args['name'], connection=connection) if not group.exists(): print("Error: Group does not exist: {0}".format(args['name'])) sys.exit(1) group.read() self.jprint(group)
def group(self, group_name, connection=None): if connection is None: group = Group(group_name, self.connection, self.save_connection) else: group = Group(group_name, connection, False) return group.read()
def group(self, group_name, connection=None): if connection is None: group = Group(group_name, self.connection, self.save_connection) else: group = Group(group_name, connection, False) return group.read()
def test_load(self): group_name = self.group_list()[0] group = Group(group_name) assert group.read(self.connection) is not None assert group.host_timeout() > 0
def test_load(self): group_name = self.group_list()[0] group = Group(group_name) assert group.read(self.connection) is not None assert group.host_timeout() > 0