def _get(self, opts):
    if (opts.rbac_user is None):
        _exit_if_errors(['--rbac-username is required with the --get option'])
    if (opts.rbac_pass is not None):
        _warning('--rbac-password is not used with the --get option')
    if (opts.rbac_name is not None):
        _warning('--rbac-name is not used with the --get option')
    if (opts.roles is not None):
        _warning('--roles is not used with the --get option')
    if (opts.auth_domain is not None):
        _warning('--auth-domain is not used with the --get option')
    (result, errors) = self.rest.list_rbac_users()
    _exit_if_errors(errors)
    user = [u for u in result if (u['id'] == opts.rbac_user)]
    if (len(user) != 0):
        print(json.dumps(user, indent=2))
    else:
        _exit_if_errors([f'no user {opts.rbac_user}'])
def _get(self, opts):
    if (opts.rbac_user is None):
        _exit_if_errors(['--rbac-username is required with the --get option'])
    if (opts.rbac_pass is not None):
        _warning('--rbac-password is not used with the --get option')
    if (opts.rbac_name is not None):
        _warning('--rbac-name is not used with the --get option')
    if (opts.roles is not None):
        _warning('--roles is not used with the --get option')
    if (opts.auth_domain is not None):
        _warning('--auth-domain is not used with the --get option')
    (result, errors) = self.rest.list_rbac_users()
    _exit_if_errors(errors)
    user = [u for u in result if (u['id'] == opts.rbac_user)]
    if (len(user) != 0):
        print(json.dumps(user, indent=2))
    else:
        _exit_if_errors([f'no user {opts.rbac_user}'])