Only submit to muster when environment is setup.

This commit is contained in:
Toke Jepsen 2019-07-29 11:35:21 +01:00
parent af78f6c606
commit e742693fd7

View file

@ -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()