+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class KeepDisk < ArvadosModel
include HasUuid
include KindAndEtag
end
@bypass_arvados_authorization = true
- self.update_attributes!(o.select { |k,v|
+ self.update!(o.select { |k,v|
[:bytes_total,
:bytes_free,
:is_readable,
:last_read_at,
:last_write_at
].collect(&:to_s).index k
- }.merge(last_ping_at: Time.now))
+ }.merge(last_ping_at: db_current_time))
end
def service_host