Skip to content

Conversation

NewFuture
Copy link
Owner

This pull request includes a minor update to the ddns/config/cli.py file. The change refines how the default configuration path is determined when the config attribute in namespace is a list.

  • ddns/config/cli.py: Updated the logic for setting config_path to handle cases where namespace.config is a list, ensuring the first element of the list is used as the path.

@NewFuture NewFuture requested a review from Copilot July 25, 2025 12:07
@NewFuture NewFuture enabled auto-merge (squash) July 25, 2025 12:07
Copilot

This comment was marked as outdated.

@NewFuture NewFuture requested a review from Copilot July 25, 2025 13:39
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the CLI configuration path handling where the default config path determination could fail when namespace.config is a list. The change ensures that when namespace.config is a list, the first element is properly extracted as the configuration path.

  • Updated the default config path logic to handle list values
  • Added type checking to extract the first element when namespace.config is a list

@NewFuture NewFuture merged commit feb8911 into master Jul 25, 2025
82 of 86 checks passed
@NewFuture NewFuture deleted the fix-new-config-path branch July 25, 2025 16:51
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.

1 participant