| Conditions | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 29 | def get_metadata(self, as_shell=False): |
||
| 30 | """ Returns server metadata. |
||
| 31 | |||
| 32 | If `as_shell` is True, return a string easily parsable by a shell. If |
||
| 33 | False, return a dictionary. |
||
| 34 | """ |
||
| 35 | if as_shell: |
||
| 36 | return self.query().conf.get() |
||
| 37 | return self.query().conf.get(format='json') |
||
| 38 |