Skip to content

Profiles without cert files cannot be listed #881

@mrodm

Description

@mrodm

After being updated elastic-package to enable SSL #789 , old profiles that do not have CA or certificate files cannot be listed.
This causes that elastic-package profiles list command do not work.

Output example:

 $ elastic-package profiles list
Error: error listing all profiles: error loading profile default_dec6298_1656436608: error reading in profile default_dec6298_1656436608: error reading in profile: reading filed failed (path: /Users/mariorodriguez/.elastic-package/profiles/default_dec6298_1656436608/certs/fleet-server/key.pem): open /Users/mariorodriguez/.elastic-package/profiles/default_dec6298_1656436608/certs/fleet-server/key.pem: no such file or directory

Metadata

Metadata

Assignees

Labels

Team:EcosystemLabel for the Packages Ecosystem teambugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions