Skip to content

Commit

Permalink
version_added fix (#2291)
Browse files Browse the repository at this point in the history
Merged PR #2291.
  • Loading branch information
rambleraptor authored and modular-magician committed Sep 5, 2019
1 parent 1b038f7 commit 605f859
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/ansible
Submodule ansible updated 130 files
2 changes: 1 addition & 1 deletion provider/ansible/documentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def documentation_for_property(prop)
end),
'type' => python_type(prop),
'aliases' => prop.aliases,
'version_added' => (version_added(prop)&.to_f),
'version_added' => version_added(prop),
'suboptions' => (
if prop.nested_properties?
prop.nested_properties.reject(&:output).map { |p| documentation_for_property(p) }
Expand Down
2 changes: 1 addition & 1 deletion templates/ansible/documentation.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DOCUMENTATION = '''
'module' => module_name(object),
'description' => format_description(object.description),
'short_description' => "Creates a GCP #{object.name}",
'version_added' => version_added(object).to_f,
'version_added' => version_added(object),
'author' => "Google Inc. (@googlecloudplatform)",
'requirements' => ["python >= 2.6", "requests >= 2.18.4", "google-auth >= 1.3.0"],
'options' => [
Expand Down
2 changes: 1 addition & 1 deletion templates/ansible/facts.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DOCUMENTATION = '''
(version_added(object, :facts) < '2.9' ? "This module was called C(#{module_name(object)}_facts) before Ansible 2.9. The usage has not changed." : nil)
].compact,
'short_description' => "Gather info for GCP #{object.name}",
'version_added' => version_added(object, :facts).to_f,
'version_added' => version_added(object, :facts),
'author' => "Google Inc. (@googlecloudplatform)",
'requirements' => ["python >= 2.6", "requests >= 2.18.4", "google-auth >= 1.3.0"],
'options' => [
Expand Down

0 comments on commit 605f859

Please sign in to comment.