| commit | fb16dfbf26da671e17975b90e2b8b086eabbd129 | [log] [tgz] |
|---|---|---|
| author | Sam Stoelinga <sammiestoel@gmail.com> | Mon Nov 07 12:43:42 2016 -0800 |
| committer | Sam Stoelinga <sammiestoel@gmail.com> | Mon Nov 07 12:46:47 2016 -0800 |
| tree | 3cd33a3f30f5cfb7b9aa53af3c21f3d054bb121d | |
| parent | 7d75d4d807ccf2a62b85aaa0c9c06fa547c9e7c3 [diff] |
Fix local_settings.py when app.plugin is not set
Without this patch the following error can be seen:
```
ID: horizon_config
Function: file.managed
Name: /etc/openstack-dashboard/local_settings.py
Result: False
Comment: Unable to manage file: Jinja variable 'dict object' has no attribute 'plugin'
Started: 20:38:48.391267
Duration: 45.732 ms
Changes:
```
This patch fixes it by first checking whether app.plugin is defined.
Change-Id: Id6f281f6593a0d96210ffc44b9ba7836d5dca9d2