Skip to content

Improve the functionality and maintainability of the codebase #19

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

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

Sylfwood
Copy link
Contributor

This pull request includes several changes to improve the functionality and maintainability of the codebase, particularly in the .github/workflows/test.yml file and various module utility files. The changes include updates to the workflow, error handling improvements, and code formatting enhancements.

@Sylfwood Sylfwood requested a review from a team as a code owner March 21, 2025 17:15
Copy link
Contributor

@DannyBedard DannyBedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manque juste d'implémenter la version (1.2.2?) dans galaxy.yml

@@ -30,11 +30,11 @@

EXAMPLES = r"""
- name: Fetch dvls server information
server:
devolutions.dvls.fetch_server:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne crois pas que ça marcherait, si c'est le cas ce serait breaking

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est le sanity check qui m'a montré ca! C'est pour que l'exemple de la doc suive comme du monde le code. Si je me fais au playbouk, c'est de même qu'on le fait. Donc l'exemple est bonne.
Screenshot 2025-03-24 at 10 45 20 AM



def run_module():
module_args = dict(
argument_spec = dict(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je le changerait sur les autres aussi rendu là

module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)

if not HAS_REQUESTS_LIBRARY:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'on peut ajouter cette condition dans les autres modules aussi?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est seulement pertinent pour les libs externes, dans ce cas-ci, celle qui font références à requests. Les autres modules ne l'import pas, donc pas besoin.

DannyBedard
DannyBedard previously approved these changes Mar 24, 2025
@Sylfwood Sylfwood merged commit 18f8ca7 into master Mar 24, 2025
1 check passed
@Sylfwood Sylfwood deleted the devops/features branch March 24, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants