Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
uses: Gr1N/setup-poetry@15821dc8a61bc630db542ae4baf6a7c19a994844 # v8
with:
poetry-version: 1.7.1

Expand All @@ -37,7 +37,7 @@ jobs:
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache poetry dependencies
uses: actions/cache@v2
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ${{ steps.poetry-cache.outputs.dir }}
key:
Expand All @@ -56,15 +56,15 @@ jobs:
name: Check Code Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
with:
python-version: 3.8

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
uses: Gr1N/setup-poetry@15821dc8a61bc630db542ae4baf6a7c19a994844 # v8
with:
poetry-version: 1.7.1

Expand All @@ -73,7 +73,7 @@ jobs:
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache poetry dependencies
uses: actions/cache@v1
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ${{ steps.poetry-cache.outputs.dir }}
key: ${{ runner.os }}-poetry-3.8-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -93,15 +93,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1
with:
python-version: 3.8

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
uses: Gr1N/setup-poetry@15821dc8a61bc630db542ae4baf6a7c19a994844 # v8
with:
poetry-version: 1.7.1

Expand All @@ -110,7 +110,7 @@ jobs:
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT

- name: Cache poetry dependencies
uses: actions/cache@v1
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ${{ steps.poetry-cache.outputs.dir }}
key: ${{ runner.os }}-poetry-3.8-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -122,7 +122,7 @@ jobs:

- name: Create release and publish
id: release
uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@5982a02995853159735cb838992248c4f0f16166 # v2
with:
semantic_version: 17.1.1
extra_plugins: |
Expand Down
2 changes: 2 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ build:
os: ubuntu-22.04
tools:
python: "3.7"
apt_packages:
- graphviz

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
6 changes: 2 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,8 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
if on_rtd:
html_theme = "default"
else:
html_theme = "sphinx_rtd_theme"
html_theme = "sphinx_rtd_theme"
if not on_rtd:
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a
Expand Down
2 changes: 2 additions & 0 deletions docs/module-base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ Class Reference
---------------

.. automodule:: panos.base
:members: PanObject
:no-index:
1 change: 1 addition & 0 deletions docs/module-device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.device
:members:
1 change: 1 addition & 0 deletions docs/module-errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Class Reference
---------------

.. automodule:: panos.errors
:members:
1 change: 1 addition & 0 deletions docs/module-firewall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.firewall
:members:
1 change: 1 addition & 0 deletions docs/module-ha.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.ha
:members:
1 change: 1 addition & 0 deletions docs/module-network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.network
:members:
1 change: 1 addition & 0 deletions docs/module-objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Class Reference
---------------

.. automodule:: panos.objects
:members:
1 change: 1 addition & 0 deletions docs/module-panorama.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.panorama
:members:
1 change: 1 addition & 0 deletions docs/module-plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.plugins
:members:
1 change: 1 addition & 0 deletions docs/module-policies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Class Reference
---------------

.. automodule:: panos.policies
:members:
1 change: 1 addition & 0 deletions docs/module-predefined.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Class Reference
---------------

.. automodule:: panos.predefined
:members:
1 change: 1 addition & 0 deletions docs/module-updater.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Class Reference
---------------

.. automodule:: panos.updater
:members:
1 change: 1 addition & 0 deletions docs/module-userid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Class Reference
---------------

.. automodule:: panos.userid
:members:
2 changes: 1 addition & 1 deletion panos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5157,7 +5157,7 @@ def _parse_job_results(self, show_job_xml, get_devices=True):
"name": device["devicename"],
"result": device["result"],
"starttime": device["tstart"],
"endtime": device["tfin"],
"endtime": device.get("tfin"),
}
# Errors and warnings might not have a full structure. If it is just a string, then
# a TypeError will be produced, so in that case, just grab the string.
Expand Down
Loading