Skip to content

Commit 62b8964

Browse files
author
Kevin Paulisse
committed
Update return from catalog-only
1 parent de61eb1 commit 62b8964

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/octocatalog-diff/cli.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,8 @@ def self.catalog_only(logger, options)
169169
puts to_catalog.to_json
170170
end
171171

172-
return EXITCODE_SUCCESS_NO_DIFFS unless options[:RETURN_DIFFS] # For integration testing
173-
# :nocov:
174-
dummy_catalog = OctocatalogDiff::API::V1::Catalog.new(OctocatalogDiff::Catalog.new(backend: :noop))
175-
[dummy_catalog, to_catalog]
176-
# :nocov:
172+
return { exitcode: EXITCODE_SUCCESS_NO_DIFFS, to: to_catalog } if options[:INTEGRATION] # For integration testing
173+
EXITCODE_SUCCESS_NO_DIFFS
177174
end
178175

179176
# --bootstrap-then-exit command

0 commit comments

Comments
 (0)