class KatelloUser: __cli =None; __command = "user" def __init__(self, username = "******", password = "******"): self.__cli = KatelloCli(username,password) def user_create(self,username,password,email): command = "%s create"%self.__command options = {'username':username,'password':password,'email':email} return self.__cli.run(command, options) def user_list(self, u="admin", p="admin"): command = "%s list"%self.__command return self.__cli.run(command)
def __init__(self, username = "******", password = "******"): self.__cli = KatelloCli(username,password)