Skip to content

Commit 0fbe252

Browse files
committed
update generate.go to 0.3.0
Signed-off-by: liangchenye <[email protected]>
1 parent 647e355 commit 0fbe252

File tree

2 files changed

+110
-186
lines changed

2 files changed

+110
-186
lines changed

bvalidate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ var bundleValidateCommand = cli.Command{
6464
if err = json.NewDecoder(sf).Decode(&spec); err != nil {
6565
logrus.Fatal(err)
6666
} else {
67-
if spec.Spec.Platform.OS != "linux" {
68-
logrus.Fatalf("Operation system '%s' of the bundle is not supported yet.", spec.Spec.Platform.OS)
67+
if spec.Platform.OS != "linux" {
68+
logrus.Fatalf("Operation system '%s' of the bundle is not supported yet.", spec.Platform.OS)
6969
}
7070
}
7171

72-
rootfsPath := path.Join(inputPath, spec.Spec.Root.Path)
72+
rootfsPath := path.Join(inputPath, spec.Root.Path)
7373
if fi, err := os.Stat(rootfsPath); err != nil {
7474
logrus.Fatalf("Cannot find the rootfs: %v", rootfsPath)
7575
} else if !fi.IsDir() {
76-
logrus.Fatalf("Rootfs: %v is not a directory.", spec.Spec.Root.Path)
76+
logrus.Fatalf("Rootfs: %v is not a directory.", spec.Root.Path)
7777
}
7878
bundleValidate(spec, rootfsPath)
7979
logrus.Infof("Bundle validation succeeded.")

0 commit comments

Comments
 (0)