diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-08-15 09:33:19 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-15 09:34:18 -0700 |
commit | 2033f61aae6ff1b3e613d7bb9e9da273791a5176 (patch) | |
tree | 952fe10a58f7ee41921f63b650477095f590294e /runsc/main.go | |
parent | a620bea045b018b717fbba3193975e6d97c09bf9 (diff) |
runsc: Fix instances of file access "proxy".
This file access type is actually called "proxy-shared", but I forgot to update
all locations.
PiperOrigin-RevId: 208832491
Change-Id: I7848bc4ec2478f86cf2de1dcd1bfb5264c6276de
Diffstat (limited to 'runsc/main.go')
-rw-r--r-- | runsc/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runsc/main.go b/runsc/main.go index b36100cca..0a2cbca6c 100644 --- a/runsc/main.go +++ b/runsc/main.go @@ -109,6 +109,10 @@ func main() { cmd.Fatalf("%v", err) } + if fsAccess == boot.FileAccessProxy && *overlay { + cmd.Fatalf("overlay flag is incompatible with proxy-shared file access") + } + netType, err := boot.MakeNetworkType(*network) if err != nil { cmd.Fatalf("%v", err) @@ -119,10 +123,6 @@ func main() { cmd.Fatalf("%v", err) } - if *fileAccess == "proxy" && *overlay { - cmd.Fatalf("overlay flag is incompatible with file-access=proxy") - } - // Create a new Config from the flags. conf := &boot.Config{ RootDir: *rootDir, |