Skip to content

Commit

Permalink
fix typing due to api change
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Jan 4, 2022
1 parent 8a207a6 commit f3914d4
Show file tree
Hide file tree
Showing 22 changed files with 2,917 additions and 2,621 deletions.
4 changes: 2 additions & 2 deletions lib/kubetruth/ctapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def parameters(project:, environment: "default", tag: nil)
value = param.values.values.first&.value
if ! value.nil?
case param.type
when CloudtruthClient::ParameterTypeEnum::BOOL
when "boolean"
value = (value == "true")
when CloudtruthClient::ParameterTypeEnum::INTEGER
when "integer"
value = value.to_i
else
value = value.to_s
Expand Down
32 changes: 17 additions & 15 deletions spec/fixtures/vcr/Kubetruth_CtApi/_environment_id/gets_id.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f3914d4

Please sign in to comment.