From e742693fd73cb1e91b0d595eaba6298a19bfa4e2 Mon Sep 17 00:00:00 2001 From: Toke Jepsen Date: Mon, 29 Jul 2019 11:35:21 +0100 Subject: [PATCH] Only submit to muster when environment is setup. --- pype/plugins/maya/publish/submit_maya_muster.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pype/plugins/maya/publish/submit_maya_muster.py b/pype/plugins/maya/publish/submit_maya_muster.py index 3aae2e55ea..f4f3f3fe14 100644 --- a/pype/plugins/maya/publish/submit_maya_muster.py +++ b/pype/plugins/maya/publish/submit_maya_muster.py @@ -250,8 +250,15 @@ class MayaSubmitMuster(pyblish.api.InstancePlugin): render publish job and submit job to farm. """ # setup muster environment - self.MUSTER_REST_URL = os.environ.get("MUSTER_REST_URL", - "https://localhost:9891") + self.MUSTER_REST_URL = os.environ.get("MUSTER_REST_URL") + + if self.MUSTER_REST_URL is None: + self.log.debug( + "\"MUSTER_REST_URL\" is not found. Skipping " + "\"{}\".".format(instance) + ) + return + self._load_credentials() self._authenticate() self._get_templates()