Removing skip attribute
This commit is contained in:
parent
be2afccb85
commit
f7b45312f1
|
@ -14,19 +14,12 @@ import (
|
||||||
type stepRemoteUpload struct {
|
type stepRemoteUpload struct {
|
||||||
Key string
|
Key string
|
||||||
Message string
|
Message string
|
||||||
|
|
||||||
// Set this to true for skip
|
|
||||||
Skip bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *stepRemoteUpload) Run(state multistep.StateBag) multistep.StepAction {
|
func (s *stepRemoteUpload) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
driver := state.Get("driver").(vmwcommon.Driver)
|
driver := state.Get("driver").(vmwcommon.Driver)
|
||||||
ui := state.Get("ui").(packer.Ui)
|
ui := state.Get("ui").(packer.Ui)
|
||||||
|
|
||||||
if s.Skip {
|
|
||||||
return multistep.ActionContinue
|
|
||||||
}
|
|
||||||
|
|
||||||
remote, ok := driver.(RemoteDriver)
|
remote, ok := driver.(RemoteDriver)
|
||||||
if !ok {
|
if !ok {
|
||||||
return multistep.ActionContinue
|
return multistep.ActionContinue
|
||||||
|
|
Loading…
Reference in New Issue