Skip to content

Commit

Permalink
v1.9.0 Manage portgroup security policies, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
josenk committed Oct 27, 2021
1 parent 30217e1 commit 7bcfdda
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Terraform-provider-esxi plugin

What's New:
-----------
* v1.9.0 Changed default hwversion from 8 to 13. NOTE that this is a possible breaking change if you are using an old ESXi version.
* v1.8.0 added vswitch and portgroup resources.
* v1.7.1 added Terraform 0.13 support. This provider is now in the terraform registry.
>https://registry.terraform.io/providers/josenk/esxi
Expand Down Expand Up @@ -280,6 +281,7 @@ I work very hard to produce a stable, well documented product. I appreciate any

Version History
---------------
* 1.9.0 Manage portgroup security policies, fix typos.
* 1.8.3 Add support for ldap integrated esxi systems.
* 1.8.2 Fix, Disk Stores containing spaces for bare-metal builds.
* 1.8.1 Fix, multimachine create on Windows.
Expand Down
5 changes: 5 additions & 0 deletions esxi/esxi_remote_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func runRemoteSshCommand(esxiConnInfo ConnectionStruct, remoteSshCommand string,

stdout_raw, err := session.CombinedOutput(remoteSshCommand)
stdout := strings.TrimSpace(string(stdout_raw))

if stdout == "<unset>" {
return "Failed to ssh to esxi host or Management Agent has been restarted", err
}

log.Printf("[runRemoteSshCommand] cmd:/%s/\n stdout:/%s/\nstderr:/%s/\n", remoteSshCommand, stdout, err)

client.Close()
Expand Down
2 changes: 1 addition & 1 deletion esxi/guest-create.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func guestCREATE(c *Config, guest_name string, disk_store string,
memsize = 512
}
if virthwver == 0 {
virthwver = 8
virthwver = 13
}
if guestos == "" {
guestos = "centos-64"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/josenk/terraform-provider-esxi

require (
github.com/hashicorp/terraform v0.12.2
github.com/jszwec/csvutil v1.5.1 // indirect
github.com/jszwec/csvutil v1.5.1
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.8.3
v1.9.0

0 comments on commit 7bcfdda

Please sign in to comment.