Skip to content
Snippets Groups Projects

Resolve "Update gRPC abstraction API with missing calls and refactoring"

Merged Fabian Seidl requested to merge 359-update-grpc-abstraction-api-with-missing-calls into master
Files
12
+ 1
1
@@ -50,7 +50,7 @@ A description must be passed as positional argument.`,
@@ -50,7 +50,7 @@ A description must be passed as positional argument.`,
Run: func(cmd *cobra.Command, args []string) {
Run: func(cmd *cobra.Command, args []string) {
spinner, _ := pterm.DefaultSpinner.Start("Creating new PND")
spinner, _ := pterm.DefaultSpinner.Start("Creating new PND")
_, err := api.AddPnd(createContextWithAuthorization(), viper.GetString("controllerApiEndpoint"), pndName, pndDescription)
_, err := api.CreatePnd(createContextWithAuthorization(), viper.GetString("controllerApiEndpoint"), pndName, pndDescription)
if err != nil {
if err != nil {
spinner.Fail("Failed creating the PND with name: ", pndName)
spinner.Fail("Failed creating the PND with name: ", pndName)
spinner.Fail(err)
spinner.Fail(err)
Loading