Skip to content

Commit 5941dc3

Browse files
committed
fix job acquisition for untagged provisioners
1 parent 96b64f4 commit 5941dc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/database/migrations/000274_check_tags.up.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ CREATE OR REPLACE FUNCTION tags_compatible(subset_tags tags, superset_tags tags)
77
RETURNS boolean as $$
88
BEGIN
99
RETURN CASE
10-
WHEN superset_tags :: jsonb = '{"scope": "organization", "owner": ""}' :: jsonb
10+
-- Special case for untagged provisioners
11+
WHEN subset_tags :: jsonb = '{"scope": "organization", "owner": ""}' :: jsonb
1112
THEN subset_tags = superset_tags
1213
ELSE subset_tags :: jsonb <@ superset_tags :: jsonb
1314
END;

0 commit comments

Comments
 (0)