summaryrefslogtreecommitdiff
path: root/plugins/config
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-30 11:44:07 +0300
committerValery Piashchynski <[email protected]>2021-04-30 11:44:07 +0300
commit50aa751dcefc0ab0e96594a5f111ead316a34a70 (patch)
tree5cf1fd278e01e1bd23a3f39d408ceb49741c448c /plugins/config
parent65015a3d3f4b387675b5ca005b8831a6be9e15aa (diff)
- Update Lister implementation
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/config')
-rwxr-xr-xplugins/config/plugin.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/config/plugin.go b/plugins/config/plugin.go
index 58647eb8..eb7146b2 100755
--- a/plugins/config/plugin.go
+++ b/plugins/config/plugin.go
@@ -113,11 +113,16 @@ func (v *Viper) Has(name string) bool {
return v.viper.IsSet(name)
}
-// Returns common config parameters
+// GetCommonConfig Returns common config parameters
func (v *Viper) GetCommonConfig() *General {
return v.CommonConfig
}
+// Available interface implementation
+func (v *Viper) Available() bool {
+ return true
+}
+
func parseFlag(flag string) (string, string, error) {
const op = errors.Op("parse_flag")
if !strings.Contains(flag, "=") {