Skip to content

Commit

Permalink
feat: remove some print statements (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirien authored Oct 4, 2023
1 parent 01c49fc commit 121e732
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/exoscale/exoscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetDevpodInstance(ctx context.Context, exoscaleProvider *ExoscaleProvider)
var instanceID *string
for _, instance := range instances {
if strings.Contains(*instance.Name, exoscaleProvider.Config.MachineID) {
fmt.Printf("Found instance %v\n", *instance.Name)
exoscaleProvider.Log.Debugf("Found instance %v\n", *instance.Name)
instanceID = instance.ID
break
}
Expand Down Expand Up @@ -129,9 +129,8 @@ users:
- %s
sudo: [ "ALL=(ALL) NOPASSWD:ALL" ]`, publicKey)

fmt.Println(userData)
data := base64.StdEncoding.EncodeToString([]byte(userData))
fmt.Println(data)
exoscaleProvider.Log.Debugf("User data: %s", userData)
size, _ := strconv.Atoi(exoscaleProvider.Config.DiskSizeGB)
sizeGB := int64(size)

Expand Down

0 comments on commit 121e732

Please sign in to comment.