Serge Bazanski | f12bedf | 2021-01-15 16:58:50 +0100 | [diff] [blame^] | 1 | Copyright 2020 The Monogon Project Authors. |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | |
| 15 | |
| 16 | From 9fc5e36f4e0bd691fc502372ebf837d24fbe5297 Mon Sep 17 00:00:00 2001 |
| 17 | From: Serge Bazanski <serge@nexantic.com> |
| 18 | Date: Fri, 15 Jan 2021 16:22:33 +0100 |
| 19 | Subject: [PATCH] Build against new opencontainers runtime-specs |
| 20 | Company: nexantic GmbH |
| 21 | |
| 22 | --- |
| 23 | runsc/container/container.go | 2 +- |
| 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 25 | |
| 26 | diff --git a/runsc/container/container.go b/runsc/container/container.go |
| 27 | index 418a27beb..8508ded5a 100644 |
| 28 | --- a/runsc/container/container.go |
| 29 | +++ b/runsc/container/container.go |
| 30 | @@ -747,7 +747,7 @@ func (c *Container) State() specs.State { |
| 31 | return specs.State{ |
| 32 | Version: specs.Version, |
| 33 | ID: c.ID, |
| 34 | - Status: c.Status.String(), |
| 35 | + Status: specs.ContainerState(c.Status.String()), |
| 36 | Pid: c.SandboxPid(), |
| 37 | Bundle: c.BundleDir, |
| 38 | } |
| 39 | -- |
| 40 | 2.26.2 |
| 41 | |