mirror of
https://github.com/munki/munki.git
synced 2026-05-03 19:10:21 -05: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)
|
||||
|
||||
Reference in New Issue
Block a user