Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit ac4ddea

Browse files
committed
commands/create: Pass github-api-token to BaseDriver struct
1 parent 172c3af commit ac4ddea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commands/create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ func cmdCreateInner(c CommandLine, api libmachine.API) error {
6060

6161
// TODO: Fix hacky JSON solution
6262
rawDriver, err := json.Marshal(&drivers.BaseDriver{
63-
MachineName: name,
64-
StorePath: c.GlobalString("storage-path"),
63+
MachineName: name,
64+
StorePath: c.GlobalString("storage-path"),
65+
GithubAPIToken: c.GlobalString("github-api-token"),
6566
})
6667
if err != nil {
6768
return fmt.Errorf("Error attempting to marshal bare driver data: %s", err)

0 commit comments

Comments
 (0)