From 44a4cc03ea3d47847986d88c1424db6038aa1167 Mon Sep 17 00:00:00 2001 From: Patrick Baxter Date: Thu, 2 Apr 2015 16:24:25 -0400 Subject: [PATCH] cmd/plume: fix variable redeclaration --- cmd/plume/upload.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/plume/upload.go b/cmd/plume/upload.go index 7dd4421c9c..88ee8b577b 100644 --- a/cmd/plume/upload.go +++ b/cmd/plume/upload.go @@ -32,7 +32,7 @@ import ( ) var ( - cmdIndex = &cli.Command{ + cmdUpload = &cli.Command{ Name: "upload", Summary: "Upload os image", @@ -48,13 +48,13 @@ var ( ) func init() { - cmdIndex.Flags.StringVar(&bucket, "bucket", "gs://coreos-plume", "gs://bucket/prefix/") - cmdIndex.Flags.StringVar(&projectID, "projectID", "coreos-gce-testing", "found in developers console") - cmdIndex.Flags.StringVar(&imageName, "name", "", "filename for uploaded image, defaults to COREOS_VERSION") - cmdIndex.Flags.StringVar(&image, "image", + cmdUpload.Flags.StringVar(&bucket, "bucket", "gs://coreos-plume", "gs://bucket/prefix/") + cmdUpload.Flags.StringVar(&projectID, "projectID", "coreos-gce-testing", "found in developers console") + cmdUpload.Flags.StringVar(&imageName, "name", "", "filename for uploaded image, defaults to COREOS_VERSION") + cmdUpload.Flags.StringVar(&image, "image", "/mnt/host/source/src/build/images/amd64-usr/latest/coreos_production_gce.tar.gz", "path_to_coreos_image (build with: ./image_to_vm.sh --format=gce ...)") - cli.Register(cmdIndex) + cli.Register(cmdUpload) } func runUpload(args []string) int {