diff --git a/src/rockstor/storageadmin/static/storageadmin/js/templates/pool/add_pool_template.jst b/src/rockstor/storageadmin/static/storageadmin/js/templates/pool/add_pool_template.jst
index 9f440c134..67a817e3f 100644
--- a/src/rockstor/storageadmin/static/storageadmin/js/templates/pool/add_pool_template.jst
+++ b/src/rockstor/storageadmin/static/storageadmin/js/templates/pool/add_pool_template.jst
@@ -81,11 +81,11 @@
{{mathHelper @index}} |
{{this.name}}
{{#if this.parted}}
-
+
{{/if}}
{{#if (isOpenLuks this.role)}}
-
+
{{/if}}
|
diff --git a/src/rockstor/storageadmin/static/storageadmin/js/views/smartcustom_disks.js b/src/rockstor/storageadmin/static/storageadmin/js/views/smartcustom_disks.js
index b7ae770be..f3f283951 100644
--- a/src/rockstor/storageadmin/static/storageadmin/js/views/smartcustom_disks.js
+++ b/src/rockstor/storageadmin/static/storageadmin/js/views/smartcustom_disks.js
@@ -269,7 +269,7 @@ SmartcustomDiskView = RockstorLayoutView.extend({
if (buttonDisabled(button)) return false;
disableButton(button);
var submitmethod = 'POST';
- var posturl = '/api/disks/' + disk_name + '/smartcustom-drive';
+ var posturl = '/api/disks/' + disk_id + '/smartcustom-drive';
$.ajax({
url: posturl,
type: submitmethod,
diff --git a/src/rockstor/storageadmin/views/disk.py b/src/rockstor/storageadmin/views/disk.py
index 59b0507cd..68e3436b2 100644
--- a/src/rockstor/storageadmin/views/disk.py
+++ b/src/rockstor/storageadmin/views/disk.py
@@ -388,7 +388,7 @@ def _validate_disk(did, request):
try:
return Disk.objects.get(id=did)
except:
- e_msg = ('Disk(%d) does not exist' % did)
+ e_msg = ('Disk(%s) does not exist' % did)
handle_exception(Exception(e_msg), request)
@staticmethod
@@ -463,11 +463,11 @@ def delete(self, request, did):
try:
disk = Disk.objects.get(id=did)
except:
- e_msg = ('Disk: %d does not exist' % did)
+ e_msg = ('Disk: %s does not exist' % did)
handle_exception(Exception(e_msg), request)
if (disk.offline is not True):
- e_msg = ('Disk: %d is not offline. Cannot delete' % did)
+ e_msg = ('Disk: %s is not offline. Cannot delete' % did)
handle_exception(Exception(e_msg), request)
try:
@@ -519,10 +519,10 @@ def _wipe(self, did, request):
reverse_name, isPartition = self._reverse_role_filter_name(disk_name,
request)
if reverse_name != disk.name:
- e_msg = ('Wipe operation on whole or partition of device (%d) was '
+ e_msg = ('Wipe operation on whole or partition of device (%s) was '
'rejected as there was a discrepancy in device name '
'resolution. Wipe was called with device name (%s) which '
- 'redirected to (%d) but a check on this redirection '
+ 'redirected to (%s) but a check on this redirection '
'returned device name (%s), which is not equal to the '
'caller name as was expected. A Disks page Rescan may '
'help.'
@@ -707,7 +707,7 @@ def _btrfs_disk_import(self, did, request):
import_snapshots(share)
return Response(DiskInfoSerializer(disk).data)
except Exception as e:
- e_msg = ('Failed to import any pool on this device(%d). Error: %s'
+ e_msg = ('Failed to import any pool on this device(%s). Error: %s'
% (did, e.__str__()))
handle_exception(Exception(e_msg), request)
diff --git a/src/rockstor/storageadmin/views/disk_smart.py b/src/rockstor/storageadmin/views/disk_smart.py
index f1fac2aca..642ccc969 100644
--- a/src/rockstor/storageadmin/views/disk_smart.py
+++ b/src/rockstor/storageadmin/views/disk_smart.py
@@ -42,7 +42,7 @@ def _validate_disk(did, request):
try:
return Disk.objects.get(id=did)
except:
- e_msg = ('Disk: %d does not exist' % did)
+ e_msg = ('Disk: %s does not exist' % did)
handle_exception(Exception(e_msg), request)
def get(self, *args, **kwargs):