Brief description of the problem
Hi,
i created an custom rockon.json and tried to update the Rockons.
The errors does not help me to identify the problem. Since i tested the json with jsonlint and it is valid. And the
Detailed step by step instructions to reproduce the problem
Added json file to /opt/rockstor/rockons-metastore. And the reloaded via WebGUI.
Web-UI screenshot
Error Traceback provided on the Web-UI
NoneType: None
###Error out of /opt/rockstor/var/log/rockstor.log
[17/Nov/2024 14:47:01] ERROR [storageadmin.views.rockon:142] string indices must be integers, not ‘str’
Traceback (most recent call last):
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 139, in post
self._create_update_meta(r, rockons[r])
File “/usr/lib64/python3.11/contextlib.py”, line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 175, in _create_update_meta
“description”: r_d[“description”],
~~~^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not ‘str’
[17/Nov/2024 14:47:01] ERROR [storageadmin.util:44] Exception: Errors occurred while processing updates for the following Rock-ons (custom_config: string indices must be integers, not ‘str’).
NoneType: None