Skip to content

Commit

Permalink
Add -vmHostname option to vm-control tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed May 17, 2018
1 parent 5b4aa07 commit df2ca82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/vm-control/createVm.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func createVmOnHypervisor(hypervisor string, logger log.DebugLogger) error {
request := proto.CreateVmRequest{
DhcpTimeout: *dhcpTimeout,
VmInfo: proto.VmInfo{
Hostname: *vmHostname,
MemoryInMiB: *memory,
MilliCPUs: *milliCPUs,
OwnerGroups: ownerGroups,
Expand Down
3 changes: 2 additions & 1 deletion cmd/vm-control/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ var (
"If true, trace metadata calls until interrupted")
userDataFile = flag.String("userDataFile", "",
"Name file containing user-data accessible from the metadata server")
vmTags tags.Tags
vmHostname = flag.String("vmHostname", "", "Hostname for VM")
vmTags tags.Tags

logger log.DebugLogger
)
Expand Down

0 comments on commit df2ca82

Please sign in to comment.