meraki_network - Fix enabling my.meraki.com (#45352)

* Fix enabling my.meraki.com
- A parameter of "no" wouldn't be picked up
- Check for False in addition to whether it exists

* Clean up disable_my_meraki parameter check

(cherry picked from commit afbf72cfeb)
This commit is contained in:
Kevin Breit 2018-09-09 13:31:35 -05:00 committed by Toshio Kuratomi
parent e74a681337
commit 07b87c2ab7

View file

@ -226,7 +226,7 @@ def main():
payload['tags'] = construct_tags(meraki.params['tags'])
if meraki.params['timezone']:
payload['timeZone'] = meraki.params['timezone']
if meraki.params['disable_my_meraki']:
if meraki.params['disable_my_meraki'] is not None:
payload['disableMyMerakiCom'] = meraki.params['disable_my_meraki']
# manipulate or modify the state as needed (this is going to be the