Skip to content

Commit

Permalink
overlord/snapstate: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
  • Loading branch information
bboozzoo committed Oct 26, 2018
1 parent b55a5db commit a82c8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion overlord/snapstate/check_snap.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (e *SnapNeedsClassicSystemError) Error() string {
// compatible with the given *snap.Info
func validateFlagsForInfo(info *snap.Info, snapst *SnapState, flags Flags) error {
if flags.Classic && !info.NeedsClassic() {
return fmt.Errorf("classic confinment requested for a non classic confined snap")
return fmt.Errorf("classic confinement requested for a non classic confined snap")
}

switch c := info.Confinement; c {
Expand Down
2 changes: 1 addition & 1 deletion overlord/snapstate/check_snap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ confinement: strict

err = snapstate.CheckSnap(s.st, "snap-path", "hello", nil, nil, snapstate.Flags{Classic: true})

c.Assert(err, ErrorMatches, "classic confinment requested for a non classic confined snap")
c.Assert(err, ErrorMatches, "classic confinement requested for a non classic confined snap")
}

func (s *checkSnapSuite) TestCheckSnapKernelUpdate(c *C) {
Expand Down

0 comments on commit a82c8ba

Please sign in to comment.