Exemplo n.º 1
0
func (s *loopSuite) loopProvider(c *gc.C) storage.Provider {
	s.commands = &mockRunCommand{c: c}
	runningInsideLXC := func() (bool, error) {
		return s.runningInsideLXC, nil
	}
	return provider.LoopProvider(s.commands.run, runningInsideLXC)
}
Exemplo n.º 2
0
func (s *loopSuite) loopProvider(c *gc.C) storage.Provider {
	s.commands = &mockRunCommand{c: c}
	return provider.LoopProvider(s.commands.run)
}