File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -47,40 +47,6 @@ resolves any CDI Devices present in the Spec and dumps the result.`,
4747 },
4848}
4949
50- /*
51- func resolveDevices(ociSpecFiles ...string) error {
52- for _, ociSpecFile := range ociSpecFiles {
53- ociSpec, err := readOCISpec(ociSpecFile)
54- if err != nil {
55- return err
56- }
57-
58- resolved, err := cdi.ResolveDevices(ociSpec)
59- if err != nil {
60- return errors.Wrapf(err, "CDI device resolution failed in %q",
61- ociSpecFile)
62- }
63-
64- output := injectCfg.output
65- if output == "" {
66- if filepath.Ext(ociSpecFile) == ".json" {
67- output = "json"
68- } else {
69- output = "yaml"
70- }
71- }
72-
73- if resolved != nil {
74- fmt.Printf("OCI Spec %q: resolved devices %q\n", ociSpecFile,
75- strings.Join(resolved, ", "))
76- fmt.Printf("%s", marshalObject(2, ociSpec, output))
77- }
78- }
79-
80- return nil
81- }
82- */
83-
8450var (
8551 resolveCfg resolveFlags
8652)
You can’t perform that action at this time.
0 commit comments