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

Reinstate the pre-export hook to the original place and add a pre-tem… #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ctlam
Copy link
Owner

@ctlam ctlam commented Jul 31, 2020

Reinstate the pre-export hook to the original place and add a pre-template hook

@@ -184,8 +184,8 @@ func (self *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (pa
new(common.StepProvision),
new(xscommon.StepShutdown),
&xscommon.StepExecuteHostScripts{
ScriptType: "pre-export",
LocalScripts: self.config.PreExportHostScripts,
ScriptType: "pre-template",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about post-shutdown? There are more steps between this and new(xscommon.StepConvertToTemplate),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-template would work if it were to be called right before the templating line. Of course this is mostly for Dinesh so I'm not blocking the current form

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand, I let Dinesh to comment since it's the place that he wanted previously. Maybe we need a post-shutdown and a pre-template (+ pre-export as before).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with keeping it as pre-shutdown i need the step before vifs are destroyed and converted to a template

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean post-shutdown?

@calvinatnvidia
Copy link

Following up on this. Can we get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants