Commit bd1e91b8 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fixup whenever it is a shared instance (slave)

    Whenever you define a slave, the option_index inst the software-type but the property of the dict/object.
parent 14803a0e
...@@ -853,7 +853,8 @@ ...@@ -853,7 +853,8 @@
for (option_index in json['software-type']) { for (option_index in json['software-type']) {
if (json['software-type'].hasOwnProperty(option_index)) { if (json['software-type'].hasOwnProperty(option_index)) {
if ((gadget.state.software_type_list.length === 0) || if ((gadget.state.software_type_list.length === 0) ||
(gadget.state.software_type_list.includes(option_index))) { (gadget.state.software_type_list.includes(option_index)) ||
(gadget.state.software_type_list.includes(json['software-type'][option_index]['software-type']))) {
if (json['software-type'][option_index].shared === undefined) { if (json['software-type'][option_index].shared === undefined) {
json['software-type'][option_index].shared = false; json['software-type'][option_index].shared = false;
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1004.35618.45138.1348</string> </value> <value> <string>1005.42112.63718.7782</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1671043096.21</float> <float>1676052985.24</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment