Skip to content

Conversation

@jsoriano
Copy link
Member

Provide more information when no objects can be dumped for a given package:

  • When an input package is installed, no objects are created unless a policy is created with them, in that case dump prints now:
    No objects installed for input package sql unless a policy is created.
    
  • When a package is not installed:
    Package apache is not installed.
    
  • If the package cannot be found an error is returned.
Error: failed to get package status: package delorean not found
  • If the package is expected to have installed objects, and no object is found, an error is returned.
Error: no objects found for package apache

The current message for all these cases was:

No objects were dumped for package apache, is it installed?

Close #1050

@jsoriano jsoriano requested a review from a team February 13, 2024 10:05
@jsoriano jsoriano self-assigned this Feb 13, 2024
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jsoriano jsoriano merged commit c7f46c7 into elastic:main Feb 13, 2024
@jsoriano jsoriano deleted the dump-input-packages branch February 13, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support input packages in elastic-package dump

3 participants