tolerate old and new service related_name
diff --git a/xos/hpc_observer/hpclib.py b/xos/hpc_observer/hpclib.py
index 5ec08a4..0c1a19a 100644
--- a/xos/hpc_observer/hpclib.py
+++ b/xos/hpc_observer/hpclib.py
@@ -79,7 +79,12 @@
slicenames = {}
slicehosts = {}
- for slice in service.service.all():
+ try:
+ slices = service.slices.all()
+ except:
+ # deal with misnamed attribute in some installations
+ slices = service.service.all()
+ for slice in slices:
name = slice.name
if not ("_" in name):
continue