Skip to content

Commit 5233e6c

Browse files
committed
Merge branch 'main' of https://github.com/Apstra/aos-api-python into main
2 parents dc973f6 + d0ed23a commit 5233e6c

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.pydevproject
99
.idea
1010
aos_api_client.egg-info
11+
apstra_api_python.egg-info
1112
build
1213
dist
1314
*/.pytest_cache

aos/devices.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def find_system_with_ip(self, ip_addr: str) -> Optional[System]:
183183
for system in self.iter_all():
184184
if system.facts["mgmt_ipaddr"] == ip_addr:
185185
return system
186-
return NullSystem
186+
return NullSystem
187187

188188
def delete(self, agent_uuid: str) -> None:
189189
self.rest.delete(f"/api/system-agents/{agent_uuid}")
@@ -220,7 +220,7 @@ def find_agent_with_ip(self, ip_addr: str) -> Optional[SystemAgent]:
220220
for agent in self.iter_all():
221221
if agent.management_ip == ip_addr:
222222
return agent
223-
return NullSystemAgent
223+
return NullSystemAgent
224224

225225
def get_packages(self):
226226
"""

docs/getstarted.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
## Setup
44
setup python 3.8 virtual environment and install library with pip
55
```shell
6-
$ git clone https://github.com/Apstra/apstra-api-python.git
7-
$ cd apstra-api-python
86
$ python3.8 -m venv .venv
97
$ source .venv/bin/activate
10-
$ python setup.py install
11-
$ pip install -f /path-to-package-file/aos-api-python.whl
8+
$ pip install apstra-api-python
129
```
1310

1411
Working with the apstra-api-python library

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
NAME = "apstra-api-python"
1111

12-
VERSION = '0.1.19'
12+
VERSION = '0.1.20'
1313

1414

1515
REQUIRES = (["requests==2.24.0"],)

0 commit comments

Comments
 (0)