Fix bug 1722: add support for deploying .charm files
[osm/N2VC.git] / n2vc / n2vc_juju_conn.py
index dc4f883..c01c436 100644 (file)
@@ -453,7 +453,7 @@ class N2VCJujuConnector(N2VCConnector):
             artifact_path = artifact_path.replace("//", "/")
 
         # check charm path
-        if not self.fs.file_exists(artifact_path, mode="dir"):
+        if not self.fs.file_exists(artifact_path):
             msg = "artifact path does not exist: {}".format(artifact_path)
             raise N2VCBadArgumentsException(message=msg, bad_args=["artifact_path"])
 
@@ -550,7 +550,7 @@ class N2VCJujuConnector(N2VCConnector):
             artifact_path = artifact_path.replace("//", "/")
 
         # check charm path
-        if not self.fs.file_exists(artifact_path, mode="dir"):
+        if not self.fs.file_exists(artifact_path):
             msg = "artifact path does not exist: {}".format(artifact_path)
             raise N2VCBadArgumentsException(message=msg, bad_args=["artifact_path"])
 
@@ -886,7 +886,6 @@ class N2VCJujuConnector(N2VCConnector):
                     application_name=application_name,
                     model_name=model_name,
                     machine_id=machine_id,
-                    db_dict=db_dict,
                     total_timeout=total_timeout,
                 )
             else: