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

Side by Side Diff: environs/openstack/export_test.go

Issue 11655043: Fix ensureGroup bug in Openstack provider (Closed)
Patch Set: Created 10 years, 8 months ago
Left:
Right:
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 unified diff | Download patch
OLDNEW
1 // Copyright 2012, 2013 Canonical Ltd. 1 // Copyright 2012, 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package openstack 4 package openstack
5 5
6 import ( 6 import (
7 "bytes" 7 "bytes"
8 "fmt" 8 "fmt"
9 "launchpad.net/goose/identity" 9 "launchpad.net/goose/identity"
10 "launchpad.net/goose/nova" 10 "launchpad.net/goose/nova"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 246
247 func GetSwiftURL(e environs.Environ) (string, error) { 247 func GetSwiftURL(e environs.Environ) (string, error) {
248 return e.(*environ).client.MakeServiceURL("object-store", nil) 248 return e.(*environ).client.MakeServiceURL("object-store", nil)
249 } 249 }
250 250
251 func SetUseFloatingIP(e environs.Environ, val bool) { 251 func SetUseFloatingIP(e environs.Environ, val bool) {
252 env := e.(*environ) 252 env := e.(*environ)
253 env.ecfg().attrs["use-floating-ip"] = val 253 env.ecfg().attrs["use-floating-ip"] = val
254 } 254 }
255
256 func EnsureGroup(e environs.Environ, name string, rules []nova.RuleInfo) (nova.S ecurityGroup, error) {
257 return e.(*environ).ensureGroup(name, rules)
258 }
OLDNEW

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