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.
Use of the
--skip-if-exists
option when creating a new microservice on an application fails, as in the following example:Creating a new microservice without the
--skip-if-exists
option does work.