Skip to content

Commit

Permalink
Fixes #36900 - hammer content-view version info not working with --li…
Browse files Browse the repository at this point in the history
…fecycle-environment flag

(cherry picked from commit 76103d687092965d6afa67a39da95c7c9e3f146a)
  • Loading branch information
sjha4 authored and chris1984 committed Nov 8, 2023
1 parent f3c33cb commit fee9873
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ def legacy_option_id(result)
result['option_environment_id'] = @command.resolver.lifecycle_environment_id(
@command.resolver.scoped_options(lifecycle_environment_resource_name, result, :single))
end
if result['option_lifecycle_environment_id'] && result['option_environment_id'].nil?
result['option_environment_id'] = result['option_lifecycle_environment_id']
end
end

def legacy_option_ids(result)
if result['option_environment_names'] && result['option_environment_ids'].nil?
result['option_environment_ids'] = @command.resolver.lifecycle_environment_ids(
@command.resolver.scoped_options(lifecycle_environment_resource_name, result, :multi))
end
if result['option_lifecycle_environment_ids'] && result['option_environment_ids'].nil?
result['option_environment_ids'] = result['option_lifecycle_environment_ids']
end
end

def ensure_option_id(result)
Expand Down

0 comments on commit fee9873

Please sign in to comment.