mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added baseurl as alias for url and mirrorlist in salt.modules.zypper.mod_repo.
This commit is contained in:
parent
701c51ba7a
commit
37d25d8bc6
1 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,7 @@ def mod_repo(repo, **kwargs):
|
|||
repo or alias
|
||||
alias by which the zypper refers to the repo
|
||||
|
||||
url or mirrorlist
|
||||
url, mirrorlist or baseurl
|
||||
the URL for zypper to reference
|
||||
|
||||
enabled
|
||||
|
@ -361,7 +361,7 @@ def mod_repo(repo, **kwargs):
|
|||
|
||||
# An attempt to add new one?
|
||||
if repo not in repos_cfg.sections():
|
||||
url = kwargs.get('url', kwargs.get('mirrorlist'))
|
||||
url = kwargs.get('url', kwargs.get('mirrorlist', kwargs.get('baseurl')))
|
||||
if not url:
|
||||
raise CommandExecutionError(
|
||||
'Repository \'{0}\' not found and no URL passed to create one.'.format(repo))
|
||||
|
|
Loading…
Add table
Reference in a new issue