Ubuntu Pastebin

Paste from Nate at Wed, 22 Jun 2016 05:34:03 +0000

Download as text
1
2
3
4
5
6
7
8
	// If the machine will run a controller, then we need to open the
	// API port for it.
	var apiPort *int
	if args.InstanceConfig.Bootstrap != nil {
		apiPort = &args.InstanceConfig.Bootstrap.StateServingInfo.APIPort
	} else if args.InstanceConfig.Controller != nil {
		apiPort = &args.InstanceConfig.APIInfo.Ports()[0]
	}
Download as text