From 9bb529c62dcf1070dc95d8871f6f16a79a7d7bbd Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Fri, 9 Sep 2022 17:36:58 +0300 Subject: [PATCH] Fix osc sd create command the os_no_auth arg is only available in heat CLI, not openstack one. Change-Id: Idf0c83304204e98909b8c876861b8ef9b0974f47 Story: 2010282 Task: 46253 --- heatclient/common/deployment_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/heatclient/common/deployment_utils.py b/heatclient/common/deployment_utils.py index 90ce66d7..80a9f7de 100644 --- a/heatclient/common/deployment_utils.py +++ b/heatclient/common/deployment_utils.py @@ -119,7 +119,9 @@ def build_signal_id(hc, args): if args.signal_transport != 'TEMP_URL_SIGNAL': return - if args.os_no_client_auth: + # NOTE(pas-ha) only heatclient has os-no-client-auth arg, + # osc plugin does not have it + if getattr(args, 'os_no_client_auth', False): raise exc.CommandError(_( 'Cannot use --os-no-client-auth, auth required to create ' 'a Swift TempURL.'))