diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:03:41 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:03:41 +0200 |
| commit | 32d5bbaa006fe99b326af51f7fcabd10730fe5b4 (patch) | |
| tree | 60fb1a3cd4190a1873e48c7ab25487681ee73cd9 /src | |
| parent | 1e4cc0806435f6e694e74cd6123a45bdedf3f0c9 (diff) | |
| download | vyos-1x-32d5bbaa006fe99b326af51f7fcabd10730fe5b4.tar.gz vyos-1x-32d5bbaa006fe99b326af51f7fcabd10730fe5b4.zip | |
op-mode: T7648: fix pylint errors in storage module
************* Module storage
src/op_mode/storage.py:32:11: E0602: Undefined variable '_get_system_storage' (undefined-variable)
src/op_mode/storage.py:52:11: E0602: Undefined variable 'output' (undefined-variable)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/storage.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/op_mode/storage.py b/src/op_mode/storage.py index 7e869e9d9..0f3fabe32 100755 --- a/src/op_mode/storage.py +++ b/src/op_mode/storage.py @@ -13,10 +13,8 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# import sys - import vyos.opmode from jinja2 import Template @@ -28,9 +26,6 @@ Used: {{used}} ({{use_percentage}}%) Available: {{avail}} ({{avail_percentage}}%) """ -def _get_formatted_output(): - return _get_system_storage() - def show(raw: bool): from vyos.utils.disk import get_persistent_storage_stats @@ -49,7 +44,7 @@ def show(raw: bool): tmpl = Template(output_tmpl) return tmpl.render(data).strip() - return output + return None if __name__ == '__main__': try: @@ -59,4 +54,3 @@ if __name__ == '__main__': except (ValueError, vyos.opmode.Error) as e: print(e) sys.exit(1) - |
