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 }
func (os *OpenStack) RenameInstance(instanceID string, name string) error { opts := servers.UpdateOpts{ Name: name, } _, err := servers.Update(os.ComputeClient, instanceID, opts).Extract() return err }