So, I am about to create a new share, and set its size to 1024GB, but the system told me that the share size must be an integer, which already is. I tried other things like 1000GB, still didn’t work.
Error message (Since new users can only post one picture, genius!):
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/share.py”, line 50, in _validate_share_size
size = int(size)
TypeError: int() argument must be a string or a number, not ‘NoneType’
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/share.py", line 50, in _validate_share_size
size = int(size)
TypeError: int() argument must be a string or a number, not 'NoneType'
@Flyer on a related note I used the d3 slider in my hdparm settings page to select APM level. There I required an integer but can’t remember what I did. Pretty sure they are the only 2 places it’s used in Rockstor. The co-founder was one of the original authors of d3 slider I believe.
Any changes we make to our copy of d3 slider directly would have to be wise to knock on effects in the APM setting use of it (which was a bit hacky I’m afraid: sorry).
Hi @phillxnet,
not going to modify D3 I remember had a check on “Create share” code and issue is not on D3 itself but on our slider js (If I’m not wrong something related to decimal separator or similar)