Fix the Remote Backup Storage Issue

This commit is contained in:
Usman Nasir
2019-06-08 21:41:43 +00:00
parent 8e2ad7f4b2
commit 0399a43830
3284 changed files with 2254 additions and 1140 deletions

2
containerization/views.py Normal file → Executable file
View File

@@ -288,6 +288,7 @@ def getUsageData(request):
try:
type = data['type']
finalData = {}
finalData['status'] = 1
try:
if type == 'memory':
@@ -336,6 +337,7 @@ def getUsageData(request):
output = str(subprocess.check_output(command, shell=True))
finalData = {}
finalData['status'] = 1
if len(output) == 0:
finalData['cpu'] = '0'
else: