Fix: field parsing fails with docker labels (#3101)
This commit is contained in:
1 parent
c89c4884b6
commit
54db9ac551
1 file changed
+1
-1
@@ -453,7 +453,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
let fieldsList = fields;
|
let fieldsList = fields;
|
||||||
if (typeof fields === "string") {
|
if (typeof fields === "string") {
|
||||||
try {
|
try {
|
||||||
JSON.parse(fields);
|
fieldsList = JSON.parse(fields);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error("Invalid fields list detected in config for service '%s'", service.name);
|
logger.error("Invalid fields list detected in config for service '%s'", service.name);
|
||||||
fieldsList = null;
|
fieldsList = null;
|
||||||
|
|||||||
Reference in new issue
Block a user