GKE Cluster - adding more fields (#270)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-06-11 10:57:46 -07:00 committed by Alex Stephen
parent 719c194480
commit ca5763c738
3 changed files with 728 additions and 5 deletions

View file

@ -49,6 +49,10 @@ def remove_nones_from_dict(obj):
value = obj[key]
if value is not None and value != {} and value != []:
new_obj[key] = value
# Blank dictionaries should return None or GCP API may complain.
if not new_obj:
return None
return new_obj