commit | e8144d7939760ea61c7e77141571f0916c6a0781 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Fri May 22 21:04:13 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Fri May 22 21:04:13 2015 -0700 |
tree | 1089f6c09292582d7862d28eefdb0bf09b0759f9 | |
parent | 708184c7fa9678d56a6ecbae412f6bad5f05b95f [diff] |
add config file attribute to force cmi hostname for hpc observer
diff --git a/xos/observers/hpc/hpclib.py b/xos/observers/hpc/hpclib.py index a53c8e9..30dbe87 100644 --- a/xos/observers/hpc/hpclib.py +++ b/xos/observers/hpc/hpclib.py
@@ -82,6 +82,9 @@ return hpc_service def get_cmi_hostname(self, hpc_service=None): + if getattr(Config(),"observer_cmi_hostname",None): + return getattr(Config(),"observer_cmi_hostname") + if (hpc_service is None): hpc_service = self.get_hpc_service()