Skip to content

Commit

Permalink
Merge pull request #35 from pbx0/fix
Browse files Browse the repository at this point in the history
cmd/plume: fix variable redeclaration
  • Loading branch information
Patrick Baxter committed Apr 2, 2015
2 parents b44c3b0 + 44a4cc0 commit 1616c61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/plume/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

var (
cmdIndex = &cli.Command{
cmdUpload = &cli.Command{

Name: "upload",
Summary: "Upload os image",
Expand All @@ -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 {
Expand Down

0 comments on commit 1616c61

Please sign in to comment.