mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 08:42:33 -04:00
command/push: if a token isn't given, don't set it
This commit is contained in:
parent
d08815fc49
commit
f76116e4a3
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ func (c *PushCommand) Run(args []string) int {
|
|||
return 1
|
||||
}
|
||||
}
|
||||
c.client.Token = token
|
||||
if token != "" {
|
||||
c.client.Token = token
|
||||
}
|
||||
|
||||
// Build the archiving options
|
||||
var opts archive.ArchiveOpts
|
||||
|
|
|
|||
Loading…
Reference in a new issue