PaloAltoNetworks / PaloAltoNetworks/pan-os-python

Getting args error when calling updater

Open
#169 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
400
Forks
199
PR merge metrics
No merged PRs in 30d

Description

update = updater.ContentUpdater(fw_1)
update.download_install(sync_to_peer=False)
Also tried it like this

update.download_install()

ERROR
update.download_install()
self.download(version, sync_to_peer=sync_to_peer, sync=True)
typeError: download() got multiple values for keyword argument 'sync_to_peer'

Looks like it is calling the wrong class.....
Thoughts ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ContentUpdater.download_install and follow the shown call to download(), comparing how sync_to_peer is passed when download_install() is called with and without the argument. Done means both invocation forms complete without the reported multiple-values TypeError and use the intended updater behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.