Skip to content

Export fails if no resources of a type exist. #67

@colinhuckstep

Description

@colinhuckstep

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When running 'pingcli platform export', if no resources exist for resource type an error occurs and the export fails.

PingCLI Version

pingcli version 0.2.0 (commit: 07859dc)

Affected Command(s)

pingcli platform export

Debug Output

PING_LOG_LEVEL=DEBUG pingcli platform export --services "pingone-mfa,pingone-platform,pingone-protect,pingone-sso" --output-directory ./dump --overwrite
WARNING: No target PingOne export environment ID specified. Defaulting export environment ID to the Worker App environment ID.
Exporting pingone-mfa service...
Exporting pingone-platform service...
ERROR: Failed to execute pingcli: failed to export 'pingone-platform' service: failed to export resource pingone_forms_recaptcha_v2. err: failed to export resource 'pingone_forms_recaptcha_v2'.
PingOne API request for resource 'pingone_forms_recaptcha_v2' was not successful. response data is nil.
response code: 204 No Content
response body: {}

Expected Behavior

The export operation should skip resources if they do not exist.

Actual Behavior

Export fails

Steps to Reproduce

pingcli platform export --services "pingone-mfa,pingone-platform,pingone-protect,pingone-sso" --output-directory ./dump --overwrite

Important Factoids

We are in the process of setting up new environments. I'm trying to do an export of the clean base environment before we add any new resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions