commit | 2c76bffb36aef93032ecf3001fbd1666c2ea903a | [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 | c676238dd418c5879ce0fd2a7096daebba8cc0cf [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]