@@ -17,11 +17,11 @@ import (
1717
1818 "github.com/juju/juju/api/base"
1919 apicharm "github.com/juju/juju/api/common/charm"
20+ corebase "github.com/juju/juju/core/base"
2021 "github.com/juju/juju/core/constraints"
2122 "github.com/juju/juju/core/crossmodel"
2223 "github.com/juju/juju/core/devices"
2324 "github.com/juju/juju/core/instance"
24- coreseries "github.com/juju/juju/core/series"
2525 "github.com/juju/juju/rpc/params"
2626 "github.com/juju/juju/storage"
2727)
@@ -350,7 +350,7 @@ func (c *Client) SetCharm(branchName string, cfg SetCharmConfig) error {
350350}
351351
352352// UpdateApplicationBase updates the application base in the db.
353- func (c * Client ) UpdateApplicationBase (appName string , base coreseries .Base , force bool ) error {
353+ func (c * Client ) UpdateApplicationBase (appName string , base corebase .Base , force bool ) error {
354354 args := params.UpdateChannelArgs {
355355 Args : []params.UpdateChannelArg {{
356356 Entity : params.Entity {Tag : names .NewApplicationTag (appName ).String ()},
@@ -1038,7 +1038,7 @@ type DeployInfo struct {
10381038 // Architecture is the architecture used to deploy the charm.
10391039 Architecture string `json:"architecture"`
10401040 // Base is the base used to deploy the charm.
1041- Base coreseries .Base `json:"base,omitempty"`
1041+ Base corebase .Base `json:"base,omitempty"`
10421042 // Channel is a string representation of the channel used to
10431043 // deploy the charm.
10441044 Channel string `json:"channel"`
@@ -1077,7 +1077,7 @@ type DeployFromRepositoryArg struct {
10771077 // may be non-empty only if NumUnits is 1.
10781078 AttachStorage []string
10791079 // Base describes the OS base intended to be used by the charm.
1080- Base * coreseries .Base `json:"base,omitempty"`
1080+ Base * corebase .Base `json:"base,omitempty"`
10811081 // Channel is the channel in the repository to deploy from.
10821082 // This is an optional value. Required if revision is provided.
10831083 // Defaults to “stable” if not defined nor required.
@@ -1153,7 +1153,7 @@ func (c *Client) DeployFromRepository(arg DeployFromRepositoryArg) (DeployInfo,
11531153}
11541154
11551155func deployInfoFromParams (di params.DeployFromRepositoryInfo ) (DeployInfo , error ) {
1156- base , err := coreseries .ParseBase (di .Base .Name , di .Base .Channel )
1156+ base , err := corebase .ParseBase (di .Base .Name , di .Base .Channel )
11571157 return DeployInfo {
11581158 Architecture : di .Architecture ,
11591159 Base : base ,
0 commit comments