Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoogleCompute Builder does not work with "source_image_family" key #111

Closed
adarobin opened this issue Jun 5, 2018 · 2 comments
Closed
Assignees
Milestone

Comments

@adarobin
Copy link

adarobin commented Jun 5, 2018

packerlicious version

0.8.0

Expected behavior

I expected to be able to use the source_image_family option in place of the source_image option. Per the documentation, at least one or the other is required.

Actual behavior

ValueError: Resource source_image required in type googlecompute

Steps to reproduce

template = Template()
gcp_builder = builder.GoogleCompute(
account_file = "{{user `gcp_account_file`}}",
project_id = "{{user `gcp_project_id`}}",
zone = "{{user `gcp_zone`}}",
source_image_family = "ubuntu-1804-lts",
disk_size = 10,
disk_type = "pd-ssd",
machine_type = "n1-standard-2",
image_name = "test-ubuntu-1804-bionic-v{{isotime \"20060102\"}}",
image_family = "test-ubuntu-1804-lts",
communicator = "ssh"
)
template.add_builder(gcp_builder)
print template.to_json()
@mayn mayn added this to the 0.8.1 milestone Jun 5, 2018
@mayn mayn self-assigned this Jun 5, 2018
@mayn mayn closed this as completed in d40e33a Jun 5, 2018
@mayn
Copy link
Owner

mayn commented Jun 5, 2018

thanks @adarobin for reporting, please update to v0.8.1 and report any additional issues

@mayn mayn reopened this Jun 5, 2018
@mayn mayn added the awaiting-reply hey! get back to me on this label Jun 5, 2018
@mayn mayn closed this as completed Jun 5, 2018
@adarobin
Copy link
Author

adarobin commented Jun 5, 2018

@mayn This seems to be working now, thanks!

@mayn mayn removed the awaiting-reply hey! get back to me on this label Jun 5, 2018
hongjoonchew pushed a commit to hongjoonchew/packerlicious that referenced this issue Jul 10, 2018
hongjoonchew pushed a commit to hongjoonchew/packerlicious that referenced this issue Jul 10, 2018
hongjoonchew pushed a commit to hongjoonchew/packerlicious that referenced this issue Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants