File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ pip install -r requirements.txt
77772 . Change to ` bin ` directory and run the ` generate.py ` script:
7878``` shell
7979cd bin
80- python generate.py --host https://demo.netbox.dev
80+ python generate.py --url https://demo.netbox.dev
8181```
8282
83833 . Update the ` CHANGES.md ` file with the new version of NetBox that was used to generate the pack.
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments