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
This commit is contained in:
Pavlo Shchelokovskyy
2022-09-09 17:36:58 +03:00
parent 1b87d22f45
commit 9bb529c62d

View File

@@ -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.'))