Reverting some ResourceRef changes (#226)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-04-02 21:03:30 -07:00 committed by Alex Stephen
parent 795304780b
commit bbaf1a79c7
64 changed files with 423 additions and 379 deletions

View file

@ -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):