Skip to content

v0.8.0 - import integration does not support --replace flag #107

@davhparry

Description

@davhparry

Should import on integration (not integration-model) support --replace.

I think it should. There is a 'put' API option for integrations that i think could be used here.

ipctl import integration 'environments/local/integration/Slack.integration.json' --config ./bin/config --profile local --replace --verbose

2025-04-02T15:15:29Z �[32mINF�[0m �[1mipctl v0.8.0 (ab5c79d)�[0m
2025-04-02T15:15:29Z �[32mINF�[0m �[1mconnection timeout is 30 second(s)�[0m
2025-04-02T15:15:29Z �[32mINF�[0m �[1mCreating new http client�[0m
WARNING: `--replace` is not supported for this command and will be ignored%!(EXTRA []interface {}=[])
2025-04-02T15:15:29Z �[32mINF�[0m �[1mPOST https://localhost:3443/login�[0m
2025-04-02T15:15:30Z �[32mINF�[0m �[1mHTTP response is 200 OK�[0m
2025-04-02T15:15:30Z �[32mINF�[0m �[1mGET https://localhost:3443/integrations/Slack�[0m
2025-04-02T15:15:30Z �[32mINF�[0m �[1mHTTP response is 200 OK�[0m
2025-04-02T15:15:30Z �[32mINF�[0m �[1mPOST https://localhost:3443/integrations�[0m
2025-04-02T15:15:30Z �[32mINF�[0m �[1mHTTP response is 500 Internal Server Error�[0m


ERROR:root:Unable to import integration Slack
ERROR:root:2025-04-02T15:15:30Z �[31mERR�[0m �[1mstatus code = 500, expected status code = 200�[0m �[36merror=�[0m�[31m�[1m"status code = 500, expected status code = 200"�[0m�[0m
2025-04-02T15:15:30Z �[31mERR�[0m �[1m"A service with the name Slack already exists."�[0m �[36merror=�[0m�[31m�[1m"\"A service with the name Slack already exists.\""�[0m�[0m
�[31;1mError:�[0m "A service with the name Slack already exists."
2025-04-02T15:15:30Z �[31mFTL�[0m �[36merror=�[0m�[31m�[1m"\"A service with the name Slack already exists.\""�[0m�[0m

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions