@@ -14,6 +14,8 @@ import (
14
14
"github.com/threefoldtech/tfgrid-sdk-go/grid-cli/internal/config"
15
15
"github.com/threefoldtech/tfgrid-sdk-go/grid-cli/internal/filters"
16
16
"github.com/threefoldtech/tfgrid-sdk-go/grid-client/deployer"
17
+ client "github.com/threefoldtech/tfgrid-sdk-go/grid-client/node"
18
+ "github.com/threefoldtech/tfgrid-sdk-go/grid-client/subi"
17
19
"github.com/threefoldtech/tfgrid-sdk-go/grid-client/workloads"
18
20
"github.com/threefoldtech/tfgrid-sdk-go/grid-client/zos"
19
21
)
@@ -134,7 +136,7 @@ var deployVMCmd = &cobra.Command{
134
136
isLight := ! ipv4 && ! ipv6 && ! ygg
135
137
136
138
if node != 0 {
137
- isLight , err = isZos4Node (context . Background (), t , node )
139
+ isLight , err = isZos4Node (cmd . Context (), t . NcPool , t . SubstrateConn , node )
138
140
if err != nil {
139
141
log .Fatal ().Err (err ).Send ()
140
142
}
@@ -332,8 +334,8 @@ func executeVMLight(
332
334
return nil
333
335
}
334
336
335
- func isZos4Node (ctx context.Context , tf deployer. TFPluginClient , node uint32 ) (isLight bool , err error ) {
336
- cli , err := tf . NcPool . GetNodeClient (tf . SubstrateConn , node )
337
+ func isZos4Node (ctx context.Context , client client. NodeClientGetter , sub subi. SubstrateExt , node uint32 ) (isLight bool , err error ) {
338
+ cli , err := client . GetNodeClient (sub , node )
337
339
if err != nil {
338
340
return
339
341
}
0 commit comments