mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-18 17:01:22 -07:00
Reverting some ResourceRef changes (#226)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
795304780b
commit
bbaf1a79c7
64 changed files with 423 additions and 379 deletions
|
@ -62,16 +62,9 @@ def replace_resource_dict(item, value):
|
|||
else:
|
||||
if not item:
|
||||
return item
|
||||
if isinstance(item, dict):
|
||||
else:
|
||||
return item.get(value)
|
||||
|
||||
# Item could be a string or a string representing a dictionary.
|
||||
try:
|
||||
new_item = ast.literal_eval(item)
|
||||
return replace_resource_dict(new_item, value)
|
||||
except ValueError:
|
||||
return item
|
||||
|
||||
|
||||
# Handles all authentication and HTTP sessions for GCP API calls.
|
||||
class GcpSession(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue