Permalink
Browse files

Make sure there is a repo_url before attempting to mount a fileshare …

…in munkiimport and manifestutil
  • Loading branch information...
gregneagle committed Oct 24, 2016
1 parent 7c0a437 commit 0518e4048e9c9fc6b78c1643fae864ca25880166
Showing with 2 additions and 2 deletions.
  1. +1 −1 code/client/manifestutil
  2. +1 −1 code/client/munkiimport
@@ -421,7 +421,7 @@ def repo_available():
if not repo_path:
print >> sys.stderr, 'No repo path specified.'
return False
if not os.path.exists(repo_path):
if not os.path.exists(repo_path) and pref('repo_url'):
mount_repo_cli()
if not os.path.exists(repo_path):
return False
@@ -242,7 +242,7 @@ def repo_available():
if not REPO_PATH:
print >> sys.stderr, 'No repo path specified.'
return False
if not os.path.exists(REPO_PATH):
if not os.path.exists(REPO_PATH) and REPO_URL:
mount_repo_cli()
if not os.path.exists(REPO_PATH):
return False

0 comments on commit 0518e40

Please sign in to comment.