Skip to content

Commit

Permalink
fix: --from-ref for a plugin definition missing a variant (meltan…
Browse files Browse the repository at this point in the history
…o#8379)

Don't error out when adding from a plugin definition that does not contain variant
  • Loading branch information
ReubenFrankel committed Jan 26, 2024
1 parent 42f0fc6 commit 14373d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meltano/cli/utils.py
Expand Up @@ -305,7 +305,7 @@ def add_plugin( # noqa: C901
plugin_attrs = plugin_definition.canonical()

plugin_name = plugin_attrs.pop("name")
variant = plugin_attrs.pop("variant")
variant = plugin_attrs.pop("variant", variant)

try:
plugin = add_service.add(
Expand Down

0 comments on commit 14373d4

Please sign in to comment.