Example #1
0
func (this *OpenStack) VmRename(vm *lobster.VirtualMachine, name string) error {
	opts := servers.UpdateOpts{
		Name: name,
	}
	_, err := servers.Update(this.ComputeClient, vm.Identification, opts).Extract()
	return err
}
Example #2
0
func (os *OpenStack) RenameInstance(instanceID string, name string) error {
	opts := servers.UpdateOpts{
		Name: name,
	}
	_, err := servers.Update(os.ComputeClient, instanceID, opts).Extract()
	return err
}