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)