Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving Ansible fingerprint to match TF #2787

Merged
merged 11 commits into from
Dec 6, 2019
Prev Previous commit
Next Next commit
fix
  • Loading branch information
rambleraptor authored and modular-magician committed Dec 6, 2019
commit db1a5f286a1969bcc5b1a915fe7c4cada4c93fb5
4 changes: 2 additions & 2 deletions templates/ansible/resource.erb
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ def <%= func_name -%>(module, request, response):
('kind' if object.kind?),
])
%>
fingerprint = new_resource[:<%= fingerprint_name -%>]
fingerprint = new_resource[:<%= key[:fingerprint_name] -%>]
<% end -%>
<%
request_props = if fingerprint_name
request_props = if key[:fingerprint_name]
request_properties(props).merge({fingerprint_name => Google::PythonUtils::PythonCode.new("new_resource[:#{key[:fingerprint_name]}]")})
else
request_properties(props)
Expand Down