lib/kitchen/driver/oci/models/iscsi.rb in kitchen-oci-1.16.2 vs lib/kitchen/driver/oci/models/iscsi.rb in kitchen-oci-1.17.0
- old
+ new
@@ -21,15 +21,20 @@
module Driver
class Oci
module Models
# iscsi volume attachment model
class Iscsi < Blockstorage
- attr_reader :attachment_type
-
def initialize(config, state, oci, api)
super
@attachment_type = "iscsi"
end
+
+ #
+ # The type of attachment being created
+ #
+ # @return [String]
+ #
+ attr_reader :attachment_type
def attachment_details(volume_details, server_id)
OCI::Core::Models::AttachIScsiVolumeDetails.new(
display_name: "#{attachment_type}-#{volume_details.display_name}",
volume_id: volume_details.id,