lenovo / lenovo/python-redfish-lenovo

lenovo_add_alert_recipient.py Can't use extra args

Open
#369 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
106
Forks
57
Avg merge
4d 15h
Merged PRs (30d)
1

Description

Hi, I'm trying to use the script but I can't make it work, when I add the extra parameters like --RecipientName for example:

python lenovo_add_alert_recipient.py -i 10.10.10.10 -u USERID -p PASSW0RD --RecipientName example --Address 10.10.10.10:514 --Enabledstate 1 --AlertType Syslog

It doesn't work, I only get the error: unrecognized arguments: --RecipientName example --Address 10.10.10.10:514 --Enabledstate 1

Contributor guide

No contributing guide indexed for this repository

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 by reading lenovo_add_alert_recipient.py and its argument parser, then reproduce the command with the extra options shown in the issue. Check how the parser defines optional arguments and verify that the reported options are accepted without the unrecognized-arguments error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.