From 5647aad88f744915cb632108a7252a506e73815c Mon Sep 17 00:00:00 2001
From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr>
Date: Sun, 30 May 2021 22:48:42 +0200
Subject: [PATCH] fix instance_url

---
 runWorkflowPhaeo.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runWorkflowPhaeo.py b/runWorkflowPhaeo.py
index 1aede4a..286a3b8 100644
--- a/runWorkflowPhaeo.py
+++ b/runWorkflowPhaeo.py
@@ -41,12 +41,12 @@ class RunWorkflow(speciesData.SpeciesData):
     def set_galaxy_instance(self, config):
 
         # Set the instance url attribute --> TODO: the localhost rule in the docker-compose still doesn't work on scratchgmodv1
-        instance_url = "http://localhost:{0}/sp/{1}/galaxy/".format(
+        self.instance_url = "http://localhost:{0}/sp/{1}/galaxy/".format(
             config[constants.CONF_ALL_HTTP_PORT],
             self.genus_species)
 
         self.instance = utilities_bioblend.get_galaxy_instance(
-            instance_url=instance_url,
+            instance_url=self.instance_url,
             email=config[constants.CONF_GALAXY_DEFAULT_ADMIN_EMAIL],
             password=config[constants.CONF_GALAXY_DEFAULT_ADMIN_PASSWORD],
         )
-- 
GitLab