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

Unified Diff: environs/tools/testing/testing.go

Issue 92160043: Split out Ubuntu series lookup (Closed)
Patch Set: 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 | « environs/tools/simplestreams.go ('k') | environs/tools/tools.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/tools/testing/testing.go
=== modified file 'environs/tools/testing/testing.go'
--- environs/tools/testing/testing.go 2014-04-30 23:18:40 +0000
+++ environs/tools/testing/testing.go 2014-05-09 04:33:53 +0000
@@ -21,6 +21,7 @@
"launchpad.net/juju-core/environs/simplestreams"
"launchpad.net/juju-core/environs/storage"
"launchpad.net/juju-core/environs/tools"
+ "launchpad.net/juju-core/juju/ubuntu"
coretools "launchpad.net/juju-core/tools"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/utils/set"
@@ -123,7 +124,7 @@
toolsMetadata := item.(*tools.ToolsMetadata)
toolsMetadataMap[key] = toolsMetadata
toolsVersions.Add(key)
- seriesVersion, err := simplestreams.SeriesVersion(toolsMetadata.Release)
+ seriesVersion, err := ubuntu.SeriesVersion(toolsMetadata.Release)
c.Assert(err, gc.IsNil)
productId := fmt.Sprintf("com.ubuntu.juju:%s:%s", seriesVersion, toolsMetadata.Arch)
expectedProductIds.Add(productId)
« no previous file with comments | « environs/tools/simplestreams.go ('k') | environs/tools/tools.go » ('j') | no next file with comments »

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