Skip to content

Commit c9e98ed

Browse files
committed
Changed host to url
1 parent 69794cf commit c9e98ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pip install -r requirements.txt
7777
2. Change to `bin` directory and run the `generate.py` script:
7878
```shell
7979
cd bin
80-
python generate.py --host https://demo.netbox.dev
80+
python generate.py --url https://demo.netbox.dev
8181
```
8282

8383
3. Update the `CHANGES.md` file with the new version of NetBox that was used to generate the pack.

bin/generate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def main():
225225
"""
226226
parser = argparse.ArgumentParser()
227227
parser.add_argument(
228-
'--host',
228+
'--url',
229229
type=str,
230230
default='https://demo.netbox.dev',
231231
help='NetBox hostname'
@@ -238,11 +238,11 @@ def main():
238238
)
239239

240240
args = parser.parse_args()
241-
host = str(args.host).rstrip('/')
241+
url = str(args.url).rstrip('/')
242242

243243
try:
244-
print(f'Connecting to {host}...')
245-
response = requests.get(f'{host}/api/schema?format=json', verify=args.skip_ssl)
244+
print(f'Connecting to {url}...')
245+
response = requests.get(f'{url}/api/schema?format=json', verify=args.skip_ssl)
246246
response.raise_for_status()
247247
spec = response.json()
248248
except requests.RequestException as e:

0 commit comments

Comments
 (0)