diff --git a/cps/config_sql.py b/cps/config_sql.py index d7208b37d..c64addfb1 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -326,7 +326,9 @@ class ConfigSQL(object): def to_dict(self): storage = {} for k, v in self.__dict__.items(): - if k[0] != '_' and not k.endswith("_e") and not k == "cli" and 'api' not in k.lower(): + if k[0] != '_' and not k.endswith("_e") and not k == "cli" \ + and 'api' not in k.lower() and 'token' not in k.lower() \ + and 'secret' not in k.lower() storage[k] = v return storage