Skip to content

Commit 0bf3429

Browse files
author
Aleksei Burlakov
committed
Fix: enable colocation linking
The shell_syntax function was created 10 years ago and the json parsing has changed. The set2[:sequential] used to be boolean and now it's string. TODO: tests.
1 parent d7058a8 commit 0bf3429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hawk/app/models/colocation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def shell_syntax
8383
end
8484
else
8585
collapsed.each do |set2|
86-
cmd.push " ( " unless set2[:sequential]
86+
cmd.push " ( " if set2[:sequential] == false or set2[:sequential] == "false"
8787
set2[:resources].reverse_each do |r|
8888
cmd.push r + (set2[:action].blank? ? "" : ":#{set2[:action]}")
8989
end
90-
cmd.push " )" unless set2[:sequential]
90+
cmd.push " )" if set2[:sequential] == false or set2[:sequential] == "false"
9191
end
9292
end
9393

0 commit comments

Comments
 (0)