Skip to content
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

refactor: translate command line arguments into JSON format and use common functions #55

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

trgill
Copy link
Collaborator

@trgill trgill commented Apr 4, 2024

refactor: use common function for both command line arguments and JSON requests

Issue Tracker Tickets (Jira or BZ if any):

#44
#51

README.md Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Fixed Show fixed Hide fixed
tasks/files/snapshot.py Fixed Show fixed Hide fixed
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Fixed Show resolved Hide resolved
tasks/files/snapshot.py Fixed Show resolved Hide resolved
tasks/files/snapshot.py Fixed Show resolved Hide resolved
tasks/files/snapshot.py Fixed Show resolved Hide resolved
@trgill trgill force-pushed the use_json branch 3 times, most recently from fa46725 to cb231b7 Compare April 10, 2024 00:13
also document snapshot_lvm_mount_options and note that XFS won't allow
an identical snapshot to be mounted while the origin is still mounted
unless the nouuid option is used.

Signed-off-by: Todd Gill <[email protected]>
@trgill trgill force-pushed the use_json branch 2 times, most recently from a417467 to 939244d Compare April 10, 2024 12:57
@trgill trgill marked this pull request as ready for review April 10, 2024 19:05
@trgill trgill requested a review from spetrosi as a code owner April 10, 2024 19:05
tasks/files/snapshot.py Outdated Show resolved Hide resolved
tasks/files/snapshot.py Outdated Show resolved Hide resolved
@richm
Copy link
Contributor

richm commented Apr 10, 2024

I'll note that a lot of the code to convert things to/from JSON string, and to perform argument validation, will either go away or be much simpler when this code is converted into an Ansible module

@trgill
Copy link
Collaborator Author

trgill commented Apr 10, 2024

I'll note that a lot of the code to convert things to/from JSON string, and to perform argument validation, will either go away or be much simpler when this code is converted into an Ansible module

Ok. That is what I'm planning next. I should have done the module work first.

@richm
Copy link
Contributor

richm commented Apr 11, 2024

I'll note that a lot of the code to convert things to/from JSON string, and to perform argument validation, will either go away or be much simpler when this code is converted into an Ansible module

Ok. That is what I'm planning next. I should have done the module work first.

Yeah, sorry about that - it didn't occur to me until I realized there were a lot of json/validation changes in this PR

tasks/files/snapshot.py Fixed Show fixed Hide fixed
lv = list_item["lv"]
except KeyError:
vg = None
lv = None

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable lv is not used.
@richm
Copy link
Contributor

richm commented Apr 11, 2024

[citest]

@trgill trgill force-pushed the use_json branch 2 times, most recently from bf05cc9 to e174cbe Compare April 11, 2024 17:48
@trgill
Copy link
Collaborator Author

trgill commented Apr 11, 2024

[citest]

@trgill trgill force-pushed the use_json branch 2 times, most recently from a2278b2 to 82ff567 Compare April 11, 2024 23:15
tasks/files/snapshot.py Fixed Show fixed Hide fixed
@trgill
Copy link
Collaborator Author

trgill commented Apr 11, 2024

[citest]

…ation

minor update to error message for missing LV/VG test

update tests for required parameter to umount

Signed-off-by: Todd Gill <[email protected]>
@trgill
Copy link
Collaborator Author

trgill commented Apr 12, 2024

[citest]

@richm richm merged commit 1c0a0a5 into linux-system-roles:main Apr 12, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants