diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-15 18:31:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 18:31:37 +0100 |
commit | 47eaf23039d5a1352352ac1b33196b8344065632 (patch) | |
tree | fbf01bbb1c00fe5d46bca2b693a8e125ed30b694 /pkg/bindings/generate | |
parent | 9eaa6f4566eff75f5710c48ae0ba3d98840a50a9 (diff) | |
parent | 5df883e87d7d4faec24c53c89bab3255057de0bc (diff) | |
download | podman-47eaf23039d5a1352352ac1b33196b8344065632.tar.gz podman-47eaf23039d5a1352352ac1b33196b8344065632.tar.bz2 podman-47eaf23039d5a1352352ac1b33196b8344065632.zip |
Merge pull request #12300 from WanzenBug/fix-bindings-context
bindings: reuse context for API requests
Diffstat (limited to 'pkg/bindings/generate')
-rw-r--r-- | pkg/bindings/generate/generate.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bindings/generate/generate.go b/pkg/bindings/generate/generate.go index 742956515..641c14231 100644 --- a/pkg/bindings/generate/generate.go +++ b/pkg/bindings/generate/generate.go @@ -22,7 +22,7 @@ func Systemd(ctx context.Context, nameOrID string, options *SystemdOptions) (*en return nil, err } - response, err := conn.DoRequest(nil, http.MethodGet, "/generate/%s/systemd", params, nil, nameOrID) + response, err := conn.DoRequest(ctx, nil, http.MethodGet, "/generate/%s/systemd", params, nil, nameOrID) if err != nil { return nil, err } @@ -54,7 +54,7 @@ func Kube(ctx context.Context, nameOrIDs []string, options *KubeOptions) (*entit for _, name := range nameOrIDs { params.Add("names", name) } - response, err := conn.DoRequest(nil, http.MethodGet, "/generate/kube", params, nil) + response, err := conn.DoRequest(ctx, nil, http.MethodGet, "/generate/kube", params, nil) if err != nil { return nil, err } |