Skip to content

Commit

Permalink
state: revert field name change
Browse files Browse the repository at this point in the history
state.address.NetworkScope was renamed to
Scope, with no explicit bson field name
specified. This is a schema change, and
broke upgrade from 1.18 to 1.19.

Fixes https://bugs.launchpad.net/juju-core/+bug/1334773
  • Loading branch information
axw committed Jun 27, 2014
1 parent b5a1787 commit 80ca2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/address.go
Expand Up @@ -150,7 +150,7 @@ type address struct {
Value string
AddressType network.AddressType
NetworkName string `bson:",omitempty"`
Scope network.Scope `bson:",omitempty"`
Scope network.Scope `bson:"networkscope,omitempty"`
}

// TODO(dimitern) Make sure we integrate this with other networking
Expand All @@ -160,7 +160,7 @@ type hostPort struct {
Value string
AddressType network.AddressType
NetworkName string `bson:",omitempty"`
Scope network.Scope `bson:",omitempty"`
Scope network.Scope `bson:"networkscope,omitempty"`
Port int
}

Expand Down

0 comments on commit 80ca2ac

Please sign in to comment.