diff --git a/src/freva_deployment/__init__.py b/src/freva_deployment/__init__.py
index ce317ca8629d2394e63db8f16d33192e98f43fd7..bc6b36d7e8c158376d33b027a7ff8057f06493ad 100644
--- a/src/freva_deployment/__init__.py
+++ b/src/freva_deployment/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "2205.1.14"
+__version__ = "2205.1.15"
 AVAILABLE_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
 AVAILABLE_CONDA_ARCHS = [
     "Linux-x86_64",
diff --git a/src/freva_deployment/deploy.py b/src/freva_deployment/deploy.py
index 1f1b1e91699643c00bd53e06c788906b3fb1cf5b..cc9a9e5c0cbce6b13706c673e84f05dde547e744 100644
--- a/src/freva_deployment/deploy.py
+++ b/src/freva_deployment/deploy.py
@@ -483,9 +483,10 @@ class DeployFactory:
         self.create_eval_config()
         with self.inventory_file.open("w") as f_obj:
             f_obj.write(inventory)
+        inventory_str = inventory
         for passwd in (self.email_password, self.master_pass):
             if passwd:
-                inventory = inventory.replace(passwd, "*" * len(passwd))
+                inventory_str = inventory_str.replace(passwd, "*" * len(passwd))
         RichConsole.print(inventory, style="bold", markup=True)
         logger.info("Playing the playbooks with ansible")
         RichConsole.print(