def info(ctx, right_name): try: client = ctx.obj['client'] org = Org(client, href=ctx.obj['profiles'].get('org_href')) right_resource = org.get_right_resource(right_name) stdout(to_dict(right_resource), ctx) except Exception as e: stderr(e, ctx)
def info(ctx, right_name): try: restore_session(ctx) client = ctx.obj['client'] org = Org(client, href=ctx.obj['profiles'].get('org_href')) right_resource = org.get_right_resource(right_name) stdout(to_dict(right_resource), ctx) except Exception as e: stderr(e, ctx)