Skip to content

Commit

Permalink
Remove unnecessary constraints, 'secret_value' is not required when r…
Browse files Browse the repository at this point in the history
…ecovering resources (#1810)
  • Loading branch information
Fred-sun authored Feb 8, 2025
1 parent 796e62f commit 3731a24
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/modules/azure_rm_keyvaultsecret.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
secret_value:
description:
- Secret to be secured by keyvault.
- This parameter must be configured at creation time.
type: str
secret_expiry:
description:
Expand Down Expand Up @@ -141,10 +142,6 @@ def __init__(self):
content_type=dict(type='str')
)

required_if = [
('state', 'present', ['secret_value'])
]

self.results = dict(
changed=False,
state=dict()
Expand All @@ -165,7 +162,6 @@ def __init__(self):

super(AzureRMKeyVaultSecret, self).__init__(self.module_arg_spec,
supports_check_mode=True,
required_if=required_if,
supports_tags=True)

def exec_module(self, **kwargs):
Expand Down

0 comments on commit 3731a24

Please sign in to comment.