From 0dae7667a08728db1723db5363ffe91c97baaab0 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Fri, 5 Jan 2024 10:32:21 -0600 Subject: [PATCH] If no masterfiles path is given to cf-remote deploy and no cfbs, then use . Ticket: ENT-11158 Changelog: title --- cf_remote/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cf_remote/commands.py b/cf_remote/commands.py index d15825c..12d7f4b 100644 --- a/cf_remote/commands.py +++ b/cf_remote/commands.py @@ -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)