summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/storage.py8
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)
-