Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardstudy committed Nov 16, 2018
1 parent 77c9fb1 commit 1b7904c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bosh-softlayer-cpi/softlayer/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ func (c *ClientManager) AttachSecondDiskToInstance(id int, diskSize int) error {
var err error
until := time.Now().Add(time.Duration(1) * time.Hour)
if err = c.WaitInstanceHasNoneActiveTransaction(*sl.Int(id), until); err != nil {
return bosherr.WrapError(err, "Waiting until instance has none active transaction before os_reload")
return bosherr.WrapError(err, "Waiting until instance has none active transaction before attach ephemeral disk")
}

orderId, err := c.UpgradeInstance(id, 0, 0, 0, false, false, diskSize)
Expand All @@ -1649,7 +1649,7 @@ func (c *ClientManager) UpgradeInstanceConfig(id int, cpu int, memory int, netwo
var err error
until := time.Now().Add(time.Duration(1) * time.Hour)
if err = c.WaitInstanceHasNoneActiveTransaction(*sl.Int(id), until); err != nil {
return bosherr.WrapError(err, "Waiting until instance has none active transaction before os_reload")
return bosherr.WrapError(err, "Waiting until instance has none active transaction before upgrade instance")
}

orderId, err := c.UpgradeInstance(id, cpu, memory, network, privateCPU, dedicatedHost, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2275,7 +2275,7 @@ var _ = Describe("InstanceHandler", func() {

err := cli.AttachSecondDiskToInstance(vgID, 300)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("Waiting until instance has none active transaction before os_reload"))
Expect(err.Error()).To(ContainSubstring("Waiting until instance has none active transaction before attach ephemeral disk"))
})

It("Return error when call UpgradeInstance return an error", func() {
Expand Down Expand Up @@ -2482,7 +2482,7 @@ var _ = Describe("InstanceHandler", func() {

err := cli.UpgradeInstanceConfig(vgID, 2, 0, 0, false, false)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("Waiting until instance has none active transaction before os_reload"))
Expect(err.Error()).To(ContainSubstring("Waiting until instance has none active transaction before upgrade instance"))
})

It("Return error when call UpgradeInstance return error", func() {
Expand Down

0 comments on commit 1b7904c

Please sign in to comment.