tempest/services/identity/json/identity_client.py
def enable_disable_user(self, user_id, enabled):
        """Enables or disables a user."""
        put_body = {
            'enabled': enabled
        }
        put_body = json.dumps({'user': put_body})
        resp, body = self.put('users/%s/enabled' % user_id,
                              put_body, self.headers)
        body = json.loads(body)
        return resp, body
Enables or disables a user.
Enables or disables a user.
Enables or disables a user .
def enable_disable_user(self, user_id, enabled):
        put_body = {
            'enabled': enabled
        }
        put_body = json.dumps({'user': put_body})
        resp, body = self.put('users/%s/enabled' % user_id,
                              put_body, self.headers)
        body = json.loads(body)
        return resp, body
def enable_disable_user ( self , user_id , enabled ) : put_body = { 'enabled' : enabled } put_body = json . dumps ( { 'user' : put_body } ) resp , body = self . put ( 'users/%s/enabled' % user_id , put_body , self . headers ) body = json . loads ( body ) return resp , body
Enables or disables a user.
Enables or disables a user .
"""Enables or disables a user."""
self
user_id
enabled