-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a session token auth method to rf_diagnostic_data #182
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Brandon Biggs <[email protected]>
I added the signoff this time in my commit but the error is still there? Not sure why that's happening? |
Very strange, I don't know why... Did you use the exact commands the DCO checker recommended, or did you sign it off another way? |
As a general comment, I had been thinking about doing something just like this for resolving issue #174. One thing that I was considering was making this handled in a common manner so that we don't have to copy/paste the same code in the different scripts. We started using redfish_utilities/misc.py to contain other common logic. |
I did use the |
Signed-off-by: Brandon Biggs <[email protected]>
…logger script that allows for more options when logging. Updated rf_diagnostic_data with the new proposed argument and logger scheme Signed-off-by: Brandon Biggs <[email protected]>
Signed-off-by: Brandon Biggs <[email protected]>
The DCO issue is my fault. It's expecting the hostname of the system I'm on rather than my actual email. Not sure how to fix that, but my signoffs do appear to be in the commits. |
@mraineri I created a new file for arguments and one for logging. Tried to put common arguments into the new arguments.py. Thoughts on this style? |
def create_parent_parser(description: str = "", auth: bool = False, rhost: bool = False): | ||
parent_parser = argparse.ArgumentParser(description=description, add_help=False) | ||
|
||
parent_parser.add_argument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we maintain parity with the existing --debug
argument for the time being? I have a lot of folks relying on this usage now to debug everything.
@@ -0,0 +1,43 @@ | |||
import argparse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need the DMTF copyright above this line (just need to copy/paste from another file in here).
Other than those few comments, this is looking really nice! |
I wanted to try this on a single file before I added it to the others.