'Update host\'s attributes.'

def update_host(self, name, new_name=None, description=None, user_chap=None, pwd_chap=None):

    cmd = RdxApiCmd(cmd_prefix=[HOSTS, UPDATE_COMMAND])
    cmd.set_argument(name)
    cmd.add_flag('new-name', new_name)
    cmd.add_flag('user-chap', user_chap)
    cmd.add_flag('pwd-chap', pwd_chap)
    cmd.add_flag('description', description)
    return self._run_cmd(cmd)
