Skip to content

Commit

Permalink
[Keyvault] Fix #16390: az keyvault set-policy: Allow clear permissi…
Browse files Browse the repository at this point in the history
…ons (#23059)
  • Loading branch information
evelyn-ys committed Jun 29, 2022
1 parent a59d50e commit 262799b
Show file tree
Hide file tree
Showing 3 changed files with 1,289 additions and 1,180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def validate_policy_permissions(ns):
cert_perms = ns.certificate_permissions
storage_perms = ns.storage_permissions

if not any([key_perms, secret_perms, cert_perms, storage_perms]):
if key_perms is None and secret_perms is None and cert_perms is None and storage_perms is None:
raise argparse.ArgumentError(
None,
'specify at least one: --key-permissions, --secret-permissions, '
Expand Down
Loading

0 comments on commit 262799b

Please sign in to comment.