Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit cdb3db1

Browse files
authored
update deprecated github actions (#544)
* update deprecated github actions * fix type error
1 parent abcc541 commit cdb3db1

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Set up Python
11-
uses: actions/setup-python@v4
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: 3.8
1414
- name: Set Up Poetry
@@ -20,7 +20,7 @@ jobs:
2020
- name: Build HTML
2121
run: poetry run sphinx-build -M html docs/source docs/build
2222
- name: Upload artifacts
23-
uses: actions/upload-artifact@v3
23+
uses: actions/upload-artifact@v4
2424
with:
2525
name: html-docs
2626
path: docs/build/html/

.github/workflows/linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
run: |
2020
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
2121
sudo apt-get install -y nodejs
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Set up Python
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Set Up Poetry

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
run: |
1818
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
1919
sudo apt-get install -y nodejs
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: 3.8
2525
- name: Set Up Poetry

.github/workflows/unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
run: |
2020
curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
2121
sudo apt-get install -y nodejs
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Set up Python
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Set Up Poetry

.github/workflows/version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
shell: bash
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.8
2020
- name: Set Up Poetry

catalystwan/session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ def login(self) -> ManagerSession:
259259
self.logger.info(
260260
f"Logged to vManage({self.platform_version}) as {self.username}. The session type is {self.session_type}"
261261
)
262-
self.cookies.set("JSESSIONID", self.auth.set_cookie.get("JSESSIONID"))
262+
if jsessionid := self.auth.set_cookie.get("JSESSIONID"):
263+
self.cookies.set("JSESSIONID", jsessionid)
263264
return self
264265

265266
def wait_server_ready(self, timeout: int, poll_period: int = 10) -> None:

0 commit comments

Comments
 (0)