Skip to content

Commit

Permalink
If no masterfiles path is given to cf-remote deploy and no cfbs, then…
Browse files Browse the repository at this point in the history
… use .

Ticket: ENT-11158
Changelog: title
  • Loading branch information
craigcomstock committed Jan 5, 2024
1 parent 8090dc5 commit 0dae766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cf_remote/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,13 +800,15 @@ def deploy(hubs, masterfiles):
):
masterfiles = "out/masterfiles.tgz"
print("Found cfbs policy set: '{}'".format(masterfiles))
elif masterfiles.startswith(("http://", "https://")):
elif masterfiles and masterfiles.startswith(("http://", "https://")):
urls = [masterfiles]
paths = _download_urls(urls)
assert len(paths) == 1
masterfiles = paths[0]
log.debug("Deploying downloaded: %s" % masterfiles)
else:
if not masterfiles:
masterfiles = "."
masterfiles = os.path.abspath(os.path.expanduser(masterfiles))
log.debug("Deploy path expanded to: %s" % masterfiles)

Expand Down

0 comments on commit 0dae766

Please sign in to comment.