ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
113 stars 18 forks source link

Handle mazer.yml with with server null instead of dict #283 #285

Closed alikins closed 5 years ago

alikins commented 5 years ago
SUMMARY

Handle mazer.yml with with server null instead of dict #283

Use the default 'server' value (empty dict) if the the 'server' item from mazer.yml either doesn't exist or if it is None.

Fixes #283

ISSUE TYPE
MAZER VERSION
name = mazer
version = 1.0.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 5.1.6-200.fc29.x86_64, #1 SMP Mon Jun 3 17:20:05 UTC 2019, x86_64
executable_location = /home/adrian/venvs/mazer_0.4.0_py36/bin/mazer
python_version = 3.6.8 (default, Jan 27 2019, 09:00:23) [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)]
python_executable = /home/adrian/venvs/mazer_0.4.0_py36/bin/python
ADDITIONAL INFORMATION

There could be additional validation of the config file contents added here but since the config file format is likely going away this just handles that particular case.