cloud/shepherd/equinix/wrapngo: allow specifying options when getting device

Change-Id: Ib1f4a88d1a45d9c0da1c56bd8ee21bf18302d9f8
Reviewed-on: https://review.monogon.dev/c/monogon/+/1576
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/cloud/shepherd/equinix/manager/fakequinix_test.go b/cloud/shepherd/equinix/manager/fakequinix_test.go
index d9e5683..1abe869 100644
--- a/cloud/shepherd/equinix/manager/fakequinix_test.go
+++ b/cloud/shepherd/equinix/manager/fakequinix_test.go
@@ -53,7 +53,7 @@
 	}
 }
 
-func (f *fakequinix) GetDevice(_ context.Context, pid, did string) (*packngo.Device, error) {
+func (f *fakequinix) GetDevice(_ context.Context, pid, did string, _ *packngo.ListOptions) (*packngo.Device, error) {
 	f.mu.Lock()
 	defer f.mu.Unlock()
 
diff --git a/cloud/shepherd/equinix/manager/initializer.go b/cloud/shepherd/equinix/manager/initializer.go
index bd1dbba..95f9d39 100644
--- a/cloud/shepherd/equinix/manager/initializer.go
+++ b/cloud/shepherd/equinix/manager/initializer.go
@@ -152,7 +152,7 @@
 }
 
 func (c *Initializer) processMachine(ctx context.Context, t *task) error {
-	dev, err := c.cl.GetDevice(ctx, c.sharedConfig.ProjectId, t.machine.ProviderID)
+	dev, err := c.cl.GetDevice(ctx, c.sharedConfig.ProjectId, t.machine.ProviderID, nil)
 	if err != nil {
 		return fmt.Errorf("while fetching device %q: %v", t.machine.ProviderID, err)
 	}