Skip to content

Commit

Permalink
"Fixing #2, and removing the mistakenly added 'generating api documen…
Browse files Browse the repository at this point in the history
…tation' file"
  • Loading branch information
derekwangHPEAruba committed Sep 30, 2020
1 parent 8dd65f3 commit 7bc31ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.2.2
## Notable Changes
* Minor bug fix in system.py module

# 0.2.1

## Notable Changes
Expand Down
7 changes: 0 additions & 7 deletions docs/source/generating api documentation

This file was deleted.

8 changes: 4 additions & 4 deletions pyaoscx/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def get_chassis_info(params={}, **kwargs):
"""

if kwargs["url"].endswith("/v1/"):
target_url = kwargs["url"] + "/system/subsystems/chassis/1"
target_url = kwargs["url"] + "system/subsystems/chassis/1"
else:
# Else logic designed for v10.04 and later
target_url = kwargs["url"] + "/system/subsystems/chassis,1"
target_url = kwargs["url"] + "system/subsystems/chassis,1"

response = kwargs["s"].get(target_url, params=params, verify=False)

Expand All @@ -71,10 +71,10 @@ def get_product_info(params={}, **kwargs):
"""

if kwargs["url"].endswith("/v1/"):
target_url = kwargs["url"] + "/system/subsystems/chassis/1?attributes=product_info"
target_url = kwargs["url"] + "system/subsystems/chassis/1?attributes=product_info"
else:
# Else logic designed for v10.04 and later
target_url = kwargs["url"] + "/system/subsystems/chassis,1?attributes=product_info"
target_url = kwargs["url"] + "system/subsystems/chassis,1?attributes=product_info"

response = kwargs["s"].get(target_url, params=params, verify=False)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
long_description = f.read()

setup(name='pyaoscx',
version='0.2.1',
version='0.2.2',
description='AOS-CX Python Modules',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 7bc31ed

Please sign in to comment.