diff --git a/python/v1/examples/flux/submit-job.py b/python/v1/examples/flux/submit-job.py index 9448072..ee1ff3b 100644 --- a/python/v1/examples/flux/submit-job.py +++ b/python/v1/examples/flux/submit-job.py @@ -5,7 +5,7 @@ import json import argparse from rainbow.client import RainbowClient -from jobspec.core import Jobspec +from jobspec.core import Jobspec, converter # Your host should be in the rainbow-config.yaml def get_parser(): diff --git a/python/v1/rainbow/config.py b/python/v1/rainbow/config.py index ee339e3..d342631 100644 --- a/python/v1/rainbow/config.py +++ b/python/v1/rainbow/config.py @@ -56,6 +56,8 @@ def get(self, value, default=None): """ Easy access to get to underlying data. """ + if not self._cfg: + return default return self.cfg.get(value, default) @property diff --git a/python/v1/setup.py b/python/v1/setup.py index 48e890a..0d4632b 100644 --- a/python/v1/setup.py +++ b/python/v1/setup.py @@ -18,7 +18,7 @@ if __name__ == "__main__": setup( name="rainbow-scheduler", - version="0.0.16", + version="0.0.17", author="Vanessasaurus", author_email="vsoch@users.noreply.github.com", maintainer="Vanessasaurus",