21189: Improve wording in config comments and logs.
[arvados.git] / services / api / app / models / node.rb
index 9e250acfb11f794e78452ab5e08746ad8c973eec..f384ba582bc34a1ec69c7cc7b943bd649fed8328 100644 (file)
@@ -20,11 +20,10 @@ class Node < ArvadosModel
   # Only a controller can figure out whether or not the current API tokens
   # have access to the associated Job.  They're expected to set
   # job_readable=true if the Job UUID can be included in the API response.
-  belongs_to :job, {
-               foreign_key: 'job_uuid',
-               primary_key: 'uuid',
-               optional: true,
-             }
+  belongs_to :job,
+             foreign_key: 'job_uuid',
+             primary_key: 'uuid',
+             optional: true
   attr_accessor :job_readable
 
   UNUSED_NODE_IP = '127.40.4.0'
@@ -163,8 +162,8 @@ class Node < ArvadosModel
                           LIMIT 1',
                           # query label:
                           'Node.available_slot_number',
-                          # [col_id, val] for $1 vars:
-                          [[nil, MAX_VMS]],
+                          # bind vars:
+                          [MAX_VMS],
                          ).rows.first.andand.first
   end