commit | b3ac6349c3b9d38a4b0e443d005f29425bcb1a4e | [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 | 49616833b793a56c52250425406979ae2882c7d2 [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")