From 904c7dd70c2c929144f9cde86751ae3dc71e08db Mon Sep 17 00:00:00 2001 From: skovic Date: Mon, 23 Apr 2018 11:10:12 -0400 Subject: [PATCH 1/2] Implement the with_storage_type named_scope for physical server --- app/models/guest_device.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/guest_device.rb b/app/models/guest_device.rb index 345d3fab7aa..2937e1bfd04 100644 --- a/app/models/guest_device.rb +++ b/app/models/guest_device.rb @@ -20,4 +20,8 @@ class GuestDevice < ApplicationRecord def self.with_ethernet_type where(:device_type => "ethernet") end + + def self.with_storage_type + where(:device_type => "storage") + end end From dd7d0a9bd907abea47cd99d6f4858e4f24378623 Mon Sep 17 00:00:00 2001 From: skovic Date: Mon, 23 Apr 2018 11:11:53 -0400 Subject: [PATCH 2/2] Remove the renaming of guest device to network device --- locale/en.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/locale/en.yml b/locale/en.yml index 504b2b9fedb..b6f313795aa 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -735,7 +735,6 @@ en: GenericObject: Generic Object GenericObjectDefinition: Generic Object Class GuestApplication: Guest Application - GuestDevice: Network Device Host: Host / Node HostPerformance: Performance - Host IsoDatastore: ISO Datastore