From 657031900acfd3eaee3ab84ab6c9c780c2ff507b Mon Sep 17 00:00:00 2001
From: k204230 <bergemann@dkrz.de>
Date: Wed, 13 Jul 2022 18:15:46 +0200
Subject: [PATCH] Do not use freva map if not given

---
 src/freva_deployment/cli/_deploy.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/freva_deployment/cli/_deploy.py b/src/freva_deployment/cli/_deploy.py
index 4d58954..f64cea6 100644
--- a/src/freva_deployment/cli/_deploy.py
+++ b/src/freva_deployment/cli/_deploy.py
@@ -63,7 +63,10 @@ def parse_args(argv: list[str] | None) -> argparse.Namespace:
 def cli(argv: list[str] | None = None) -> None:
     """Run the command line interface."""
     args = parse_args(argv)
-    server_map = guess_map_server(args.server_map, mandatory=False)
+    if args.server_map:
+        server_map = guess_map_server(args.server_map, mandatory=False)
+    else:
+        server_map = ""
     set_log_level(args.verbose)
     with DeployFactory(
         steps=args.steps,
-- 
GitLab