mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-21 10:21:22 -07:00
GKE Cluster - adding more fields (#270)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
719c194480
commit
ca5763c738
3 changed files with 728 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue