summaryrefslogtreecommitdiff
path: root/plugins/config/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/config/plugin.go')
-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, "=") {