File tree Expand file tree Collapse file tree 2 files changed +110
-186
lines changed
Expand file tree Collapse file tree 2 files changed +110
-186
lines changed Original file line number Diff line number Diff 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." )
You can’t perform that action at this time.
0 commit comments