You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
I can't push this because I haven't got the rights, but this appears to do the trick:
Author: Ian Wells <[email protected]>
Date: Tue Oct 24 17:24:46 2023 -0700
Fix test script within README.md
It has a Python complaint and is not passing a required parameter
to the API it uses as an example.
diff --git a/equinix_metal/README.md b/equinix_metal/README.md
index 39a484e..ea43399 100644
--- a/equinix_metal/README.md
+++ b/equinix_metal/README.md
@@ -130,7 +130,7 @@ Execute `pytest` to run the tests.
Please follow the [installation procedure](#installation--usage) and then run the following:
-
+import os
import time
import equinix_metal
from equinix_metal.rest import ApiException
@@ -158,7 +158,7 @@ configuration.api_key['x_auth_token'] = os.environ["API_KEY"]
with equinix_metal.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = equinix_metal.AuthenticationApi(api_client)
- auth_token_input = equinix_metal.AuthTokenInput() # AuthTokenInput | API key to create
+ auth_token_input = equinix_metal.AuthTokenInput(description='API key from test script') # AuthTokenInput | API key to create
include = ['include_example'] # List[str] | Nested attributes to include. Included objects will return their full attributes. Attribute names can be dotted (up to 3 levels) to included deeply nested objects. (optional)
try:
The text was updated successfully, but these errors were encountered:
hi @iawells, thanks for checking out the client and thanks for your fix. Nobody can push to main, we have PR review policy. Can you do a simple pull-request? I promise that I'll test and review promptly.
If I'd dio the PR, we'll need someone third (with contrib access to this repo) to do the review.
I can't push this because I haven't got the rights, but this appears to do the trick:
The text was updated successfully, but these errors were encountered: