mirror of
https://github.com/munki/munki.git
synced 2026-01-25 16:39:19 -06:00
Extra caution to always default to FileRepo if plugin value is None or ''
This commit is contained in:
@@ -284,7 +284,7 @@ def main():
|
||||
|
||||
# Make sure the repo exists
|
||||
try:
|
||||
repo = munkirepo.connect(options.repo_url, options.plugin)
|
||||
repo = munkirepo.connect(options.repo_url, options.plugin or 'FileRepo')
|
||||
except munkirepo.RepoError, err:
|
||||
print_err_utf8(u'Could not connect to munki repo: %s' % unicode(err))
|
||||
exit(-1)
|
||||
|
||||
@@ -394,7 +394,7 @@ def main():
|
||||
|
||||
# Connect to the repo
|
||||
try:
|
||||
repo = munkirepo.connect(options.repo_url, options.plugin)
|
||||
repo = munkirepo.connect(options.repo_url, options.plugin or 'FileRepo')
|
||||
except munkirepo.RepoError, err:
|
||||
print >> sys.stderr, (u'Could not connect to munki repo: %s'
|
||||
% unicode(err))
|
||||
|
||||
@@ -915,7 +915,7 @@ def main():
|
||||
exit(-1)
|
||||
|
||||
try:
|
||||
repo = munkirepo.connect(REPO_URL, REPO_PLUGIN)
|
||||
repo = munkirepo.connect(REPO_URL, REPO_PLUGIN or 'FileRepo')
|
||||
except munkirepo.RepoError, err:
|
||||
print >> sys.stderr, (u'Could not connect to munki repo: %s'
|
||||
% unicode(err))
|
||||
|
||||
Reference in New Issue
Block a user