We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b2e09 commit 8d159dfCopy full SHA for 8d159df
cmd/setup-delivery.go
@@ -56,6 +56,10 @@ var setupDeliveryCmd = &cobra.Command{
56
log.Fatal(err)
57
}
58
59
+ if deployment.Labels == nil {
60
+ deployment.Labels = map[string]string{}
61
+ }
62
+
63
if _, exists := deployment.Labels[config.AppIdLabel]; exists {
64
color.HiRed("This deployment already has a delivery label. If you wish to update it, please remove the label first.")
65
os.Exit(1)
0 commit comments