You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kadinsayani
changed the title
Improvements to shell completions for lxc network|storage get|set|unset
Improvements to shell completions for lxc network|storage|config get|set|unsetNov 29, 2024
When you configure an option with global scope on any cluster member, the changes are propagated to the other cluster members through the distributed database. The locally scoped options are set only on the cluster member where you configure them, unless you use the --target flag to specify a different cluster member.
Therefore, we don't want to contextually provide completions for server configuration options based on cluster member roles.
We already have completions for getting and unsetting cluster member configuration options by way of the cmpClusterMemberConfigs function, so we just need to add completions for setting cluster member configuration options.
lxc network|storage set|get
should show configurable options;lxc network|storage unset
should show options that can be unset;lxc config set|get
should show configurable options based onscope
;lxc config unset
should show options that can be unset based onscope
.Completion functions should use the new
scope
field in the metadata configuration API to contextually source applicable options.The text was updated successfully, but these errors were encountered: