Commit 9e2fd1a8 authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Fix machine tests

parent 2293b1d1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -105,6 +105,15 @@ func (m *testMachine) Remove(name string) error {
	return nil
}

func (m *testMachine) Exist(name string) bool {
	for _, machine := range m.machines {
		if machine == name {
			return true
		}
	}
	return false
}

func (m *testMachine) List(nodeFilter string) (machines []string, err error) {
	return m.machines, nil
}