@@ -16,7 +16,7 @@ import (
16
16
17
17
"github.com/hashicorp/nomad/client/allocdir"
18
18
"github.com/hashicorp/nomad/client/config"
19
- "github.com/hashicorp/nomad/client/getter"
19
+ "github.com/hashicorp/nomad/client/getter"
20
20
"github.com/hashicorp/nomad/nomad/structs"
21
21
)
22
22
@@ -79,7 +79,7 @@ func (d *QemuDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool,
79
79
// image and save it to the Drivers Allocation Dir
80
80
func (d * QemuDriver ) Start (ctx * ExecContext , task * structs.Task ) (DriverHandle , error ) {
81
81
// Get the image source
82
- source , ok := task .Config ["artifact_source" ]
82
+ source , ok := task .Config ["artifact_source" ]
83
83
if ! ok || source == "" {
84
84
return nil , fmt .Errorf ("Missing source image Qemu driver" )
85
85
}
@@ -96,18 +96,18 @@ func (d *QemuDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
96
96
return nil , fmt .Errorf ("Could not find task directory for task: %v" , d .DriverContext .taskName )
97
97
}
98
98
99
- // Proceed to download an artifact to be executed.
100
- vmPath , err := getter .GetArtifact (
101
- filepath .Join (taskDir , allocdir .TaskLocal ),
102
- task .Config ["artifact_source" ],
103
- task .Config ["checksum" ],
104
- d .logger ,
105
- )
106
- if err != nil {
107
- return nil , err
108
- }
109
-
110
- vmID := filepath .Base (vmPath )
99
+ // Proceed to download an artifact to be executed.
100
+ vmPath , err := getter .GetArtifact (
101
+ filepath .Join (taskDir , allocdir .TaskLocal ),
102
+ task .Config ["artifact_source" ],
103
+ task .Config ["checksum" ],
104
+ d .logger ,
105
+ )
106
+ if err != nil {
107
+ return nil , err
108
+ }
109
+
110
+ vmID := filepath .Base (vmPath )
111
111
112
112
// Parse configuration arguments
113
113
// Create the base arguments
0 commit comments