From 980b3d4372e7ff648c71adca2179dd0b521bd06c Mon Sep 17 00:00:00 2001 From: Clivern Date: Mon, 31 Jan 2022 22:02:45 +0100 Subject: [PATCH] updates --- CHANGELOG.rst | 6 ++++++ src/flook/cli.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f43dad1..855bac1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,12 @@ Changelog ========= +Version 0.3.5 +============= + +- Fix issue. + + Version 0.3.4 ============= diff --git a/src/flook/cli.py b/src/flook/cli.py index 5334ac3..f704268 100644 --- a/src/flook/cli.py +++ b/src/flook/cli.py @@ -115,7 +115,7 @@ def add(name, connection, ip, port, user, password, ssh_private_key_file, tags, user, password, ssh_private_key_file.read() if ssh_private_key_file is not None else "", - tags.split(",") if "," in tags else [], + tags.split(",") if tags != "" else [], None, None, ) @@ -164,7 +164,7 @@ def add(name, path, tags, force): Recipes() .init() .add( - name, {"path": path, "tags": tags.split(",") if "," in tags else []}, force + name, {"path": path, "tags": tags.split(",") if tags != "" else []}, force ) )