commit | 193dc34301e1ba35ca86cc13c9aa3b034651d93c | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Tue Nov 03 15:35:54 2015 -0500 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Tue Nov 03 15:35:54 2015 -0500 |
tree | 2ec169ec10d603e253f24209d4cb8102b70296d1 | |
parent | 834daa18d1e3859552b8cff35e35b92c3d40ac24 [diff] |
Make applist an optional variable
diff --git a/xos/openstack_observer/event_loop.py b/xos/openstack_observer/event_loop.py index 16b29df..db7459a 100644 --- a/xos/openstack_observer/event_loop.py +++ b/xos/openstack_observer/event_loop.py
@@ -31,7 +31,11 @@ # Load app models -app_module_names = Config().observer_applist +try: + app_module_names = Config().observer_applist +except AttributeError: + app_module_names = [] + if (type(app_module_names)!=list): app_module_names=[app_module_names]