mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Check the key_text
option doesn't conflict with any other options
There are checks for `key_url` and `keyid`/`keyserver`, so we should probably also have a check for `key_text` as well.
This commit is contained in:
parent
3468e9c38f
commit
0cf411671e
@ -312,6 +312,16 @@ def managed(name, ppa=None, **kwargs):
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'You may not use both "keyid"/"keyserver" and ' \
|
||||
'"key_url" argument.'
|
||||
|
||||
if 'key_text' in kwargs and ('keyid' in kwargs or 'keyserver' in kwargs):
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'You may not use both "keyid"/"keyserver" and ' \
|
||||
'"key_text" argument.'
|
||||
if 'key_text' in kwargs and ('key_url' in kwargs):
|
||||
ret['result'] = False
|
||||
ret['comment'] = 'You may not use both "key_url" and ' \
|
||||
'"key_text" argument.'
|
||||
|
||||
if 'repo' in kwargs:
|
||||
ret['result'] = False
|
||||
ret['comment'] = ('\'repo\' is not a supported argument for this '
|
||||
|
Loading…
Reference in New Issue
Block a user