def change_pass_new_user(self): rest = RestConnection(self.master) for user in self.post_upgrade_user: rest.change_password_builtin_user(user['id'], 'password') for i in range(0, len(self.post_upgrade_user)): self.post_upgrade_user[i]['password'] = '******'
def change_password(self, user_id=None, password=None, host=None): if user_id: self.user_id = user_id if password: self.password = password if host: self.host = host rest = RestConnection(self.host) _ = rest.change_password_builtin_user(self.user_id, self.password)
def change_password(self,user_id=None, password=None,host=None): if user_id: self.user_id = user_id if password: self.password = password if host: self.host = host rest = RestConnection(self.host) response = rest.change_password_builtin_user(self.user_id,self.password)