(self, key, default=None)
| 22 | log.warning("Features already setup") |
| 23 | |
| 24 | def get(self, key, default=None): |
| 25 | import salt.utils.versions |
| 26 | |
| 27 | salt.utils.versions.warn_until( |
| 28 | 3009, |
| 29 | "Please stop checking feature flags using 'salt.features' and instead " |
| 30 | "check the 'features' keyword on the configuration dictionary. The " |
| 31 | "'salt.features' module will go away in {version}.", |
| 32 | ) |
| 33 | return self.features.get(key, default) |
| 34 | |
| 35 | |
| 36 | features = Features() |
no outgoing calls
no test coverage detected