commit | b72e51f3c29edd55a0a4663352ac8abcbb3d89e4 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Mon Mar 09 16:36:09 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Mon Mar 09 16:36:09 2015 -0700 |
tree | 960d801c8b9c56dde1a7737a4d623ee71862ef8e | |
parent | 745cfa42416c7a94d215c5b2291d3eb4a9ca6ba9 [diff] |
fix fault if no slices attached to services
diff --git a/xos/core/views/hpc_config.py b/xos/core/views/hpc_config.py index e24c3c4..e2dbe67 100644 --- a/xos/core/views/hpc_config.py +++ b/xos/core/views/hpc_config.py
@@ -9,6 +9,11 @@ import time def HpcConfig(request): + hpcSlice=None + cmiSlice=None + redirSlice=None + demuxSlice=None + hpc = HpcService.objects.all() if (not hpc): return HttpResponse("# Error: no HPC service")