Skip to content

Commit

Permalink
quickfix for #41
Browse files Browse the repository at this point in the history
  • Loading branch information
lgetwan committed May 25, 2022
1 parent 85d3cef commit 4ce8f42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ def run_module():
headers["If-Match"] = etag
msg_tokens = []

if current_folder.endswith("/"):
current_folder = current_folder.rstrip("/")

if current_folder != module.params["folder"]:
move_host(module, base_url, headers)
msg_tokens.append("Host was moved.")
Expand Down

0 comments on commit 4ce8f42

Please sign in to comment.