Changed based level example so it can be copied.

The base level example doesn't actually work unless enclosed with a "builders" section. All fixed now.

Previous:

    {
      	"type": "googlecompute",
		"account_file": "account.json",
		"project_id": "my project",
		"source_image": "debian-7-wheezy-v20150127",
		"zone": "us-central1-a"
    }

Now:

	{
	  "builders": [
	    {
	      	"type": "googlecompute",
			"account_file": "account.json",
			"project_id": "my project",
			"source_image": "debian-7-wheezy-v20150127",
			"zone": "us-central1-a"
	    }
	  ]
	}
This commit is contained in:
Adron Hall 2016-07-14 07:05:46 -07:00 committed by GitHub
parent 2e949bf43d
commit a7de9d9a2f
1 changed files with 9 additions and 5 deletions

View File

@ -83,11 +83,15 @@ the path to the file containing the JSON.
``` {.javascript}
{
"type": "googlecompute",
"account_file": "account.json",
"project_id": "my-project",
"source_image": "debian-7-wheezy-v20150127",
"zone": "us-central1-a"
"builders": [
{
"type": "googlecompute",
"account_file": "account.json",
"project_id": "my project",
"source_image": "debian-7-wheezy-v20150127",
"zone": "us-central1-a"
}
]
}
```