Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jun 28, 2023
1 parent 4f6ef4f commit 1a2f711
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

Version 0.3.3
=============

- Fix issue.


Version 0.3.2
=============

Expand Down
4 changes: 3 additions & 1 deletion src/flook/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ def add(name, path, tags, force):
return (
Recipes()
.init()
.add(name, {"path": path, "tags": tags.split(",") if "," in tags else []}, force)
.add(
name, {"path": path, "tags": tags.split(",") if "," in tags else []}, force
)
)


Expand Down
2 changes: 1 addition & 1 deletion src/flook/command/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def init(self):
def add(self, host, force):
"""Add a new host"""
if force:
self.database.delete_host(name)
self.database.delete_host(host.name)

if self.database.get_host(host.name) is not None:
raise click.ClickException(f"Host with name {host.name} exists")
Expand Down

0 comments on commit 1a2f711

Please sign in to comment.