Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(806)

Unified Diff: container/kvm/kvm.go

Issue 97400043: Change StopInstances to take []instance.Id
Patch Set: Change StopInstances to take []instance.Id Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « container/interface.go ('k') | container/kvm/kvm_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: container/kvm/kvm.go
=== modified file 'container/kvm/kvm.go'
--- container/kvm/kvm.go 2014-04-17 03:41:32 +0000
+++ container/kvm/kvm.go 2014-05-13 11:37:40 +0000
@@ -125,8 +125,8 @@
return &kvmInstance{kvmContainer, name}, &hardware, nil
}
-func (manager *containerManager) DestroyContainer(instance instance.Instance) error {
- name := string(instance.Id())
+func (manager *containerManager) DestroyContainer(id instance.Id) error {
+ name := string(id)
kvmContainer := KvmObjectFactory.New(name)
if err := kvmContainer.Stop(); err != nil {
logger.Errorf("failed to stop kvm container: %v", err)
« no previous file with comments | « container/interface.go ('k') | container/kvm/kvm_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b