Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FoD: fcli fod microservice create --skip-if-exists APP_NAME:MS_NAME fails #319

Closed
kadraman opened this issue Jun 8, 2023 · 0 comments · Fixed by #321
Closed

FoD: fcli fod microservice create --skip-if-exists APP_NAME:MS_NAME fails #319

kadraman opened this issue Jun 8, 2023 · 0 comments · Fixed by #321
Assignees
Labels
bug Something isn't working

Comments

@kadraman
Copy link
Collaborator

kadraman commented Jun 8, 2023

Use of the --skip-if-exists option when creating a new microservice on an application fails, as in the following example:

 fcli fod microservice create --skip-if-exists Test-Microservices-App:ms5
javax.validation.ValidationException: No application microservice found for application microservice name or id: ms5
        at com.fortify.cli.fod.entity.microservice.helper.FoDAppMicroserviceHelper.getOptionalAppMicroserviceFromAppAndMicroserviceName(FoDAppMicroserviceHelper.java:85)
        at com.fortify.cli.fod.entity.microservice.cli.cmd.FoDAppMicroserviceCreateCommand.getJsonNode(FoDAppMicroserviceCreateCommand.java:59)
        at com.fortify.cli.fod.output.cli.AbstractFoDJsonNodeOutputCommand.getJsonNode(AbstractFoDJsonNodeOutputCommand.java:11)
        at com.fortify.cli.common.output.cli.cmd.AbstractOutputCommand.run(AbstractOutputCommand.java:45)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2104)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2539)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2531)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2493)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2351)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2495)
        at picocli.CommandLine.execute(CommandLine.java:2248)
        at com.fortify.cli.app.FortifyCLI.execute(FortifyCLI.java:86)
        at com.fortify.cli.app.FortifyCLI.main(FortifyCLI.java:68)

Creating a new microservice without the --skip-if-exists option does work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant