def list_ovdcs(ctx, list_pks_plans): """Display org VDCs in vCD that are visible to the logged in user.""" try: restore_session(ctx) client = ctx.obj['client'] ovdc = Ovdc(client) result = ovdc.list_ovdc_for_k8s(list_pks_plans=list_pks_plans) stdout(result, ctx, sort_headers=False) except Exception as e: stderr(e, ctx)
def list_ovdcs(ctx, list_pks_plans): """Display org VDCs in vCD that are visible to the logged in user.""" CLIENT_LOGGER.debug(f'Executing command: {ctx.command_path}') try: restore_session(ctx) client = ctx.obj['client'] ovdc = Ovdc(client) result = ovdc.list_ovdc_for_k8s(list_pks_plans=list_pks_plans) stdout(result, ctx, sort_headers=False) CLIENT_LOGGER.debug(result) except Exception as e: stderr(e, ctx) CLIENT_LOGGER.error(str(e))