lib/fog/oraclecloud/models/java/instance.rb in fog-oraclecloud-0.1.5 vs lib/fog/oraclecloud/models/java/instance.rb in fog-oraclecloud-0.1.6

- old
+ new

@@ -104,17 +104,19 @@ raise ArgumentError, "Invalid subscription type. Valid values - HOURLY or MONTHLY" end end def domain_mode=(value) + if value.nil? then value = 'DEVELOPMENT' end if %w(DEVELOPMENT PRODUCTION).include? value then attributes[:domain_mode]=value else - raise ArgumentError, "Invalid domain mode. Valid values - DEVELOPMENT or PRODUCTION" + raise ArgumentError, "Invalid domain mode #{value}. Valid values - DEVELOPMENT or PRODUCTION" end end def edition=(value) + if value.nil? then value = 'EE' end if %w(SE EE SUITE).include? value then attributes[:edition]=value else raise ArgumentError, "Invalid edition. Valid values - SE, EE or SUITE" end