Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion openwisp_controller/connection/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,13 @@ def input_data(self):
if self.is_custom:
return self.custom_command
else:
return ", ".join(self.arguments)
processed = []
for arg in self.arguments:
if isinstance(arg, (list, tuple)):
processed.append(",".join(str(item) for item in arg))
else:
processed.append(str(arg))
return ", ".join(processed)

@property
def _schema(self):
Expand Down
Loading