Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Fixes #833 Move plugin-config outside of tribe cmds #845

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

IRCody
Copy link
Contributor

@IRCody IRCody commented Apr 8, 2016

Fixes #833

Summary of changes:

  • Moved plugin-config command underneath the plugin command so the syntax will go from snapctl plugin-config get ... to snapctl plugin config get ...
  • It will now be available outside of tribe mode.

Testing done:

  • Manual

@intelsdi-x/snap-maintainers

Move the plugin-config command in snapctl outside of tribe commands so
that it can be used when not in tribe mode. The new command will be
underneath the plugin set of commands in snapctl for consistency.

Move the plugin-config command in snapctl outside of tribe commands so
that it can be used when not in tribe mode. The new command will be
underneath the plugin set of commands in snapctl for consistency.
@@ -117,6 +117,21 @@ var (
flRunning,
},
},
{
Name: "config",
Copy link
Contributor

Choose a reason for hiding this comment

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

should you use global-plugin-config as the name or something to make it clear to users that it only lists the global plugin config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. What other configs are there where the target is a plugin?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine as it has plugin in the front of the command and is consistent with others. Also this command only shows the global config. Do I understand this correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I see how showing anything else would make sense. It's displaying the output from /v1/plugins/:type/:name/:version/config rest call. Are there other config values that would make sense to show for a plugin?

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we can define plugin specific config inside task manifest although that's task specific. If answer is yes, how that will have effect on the global plugin config. This topic may not related to your fix.

Copy link
Contributor

Choose a reason for hiding this comment

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

your fix is good! LGTM 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can put plugin specific stuff inside task manifest but I think that would fall under task config. Maybe there should be a way to see that like: snapctl task config <task-id>?

Copy link
Contributor

Choose a reason for hiding this comment

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

a nice doc for the current state and the future state, that would be nice. It has nothing to do with your fix here. I'm just trying to understand it. thanks.

@IRCody IRCody merged commit e8c0b4c into intelsdi-x:master Apr 13, 2016
@IRCody IRCody deleted the fix_833 branch May 2, 2016 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants