lib/fog/oraclecloud/models/java/instance.rb in fog-oraclecloud-0.1.4 vs lib/fog/oraclecloud/models/java/instance.rb in fog-oraclecloud-0.1.5
- old
+ new
@@ -120,10 +120,11 @@
raise ArgumentError, "Invalid edition. Valid values - SE, EE or SUITE"
end
end
def num_nodes=(value)
+ if value.nil? then value = 1 end
if [1, 2, 4, 8].include? value then
attributes[:num_nodes]=value
else
raise ArgumentError, "Invalid server count (#{value}). Valid values - 1, 2, 4 or 8"
end
@@ -174,10 +175,10 @@
end
private
def create
- requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key
+ requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key, :admin_password
#data = service.create_instance(service_name, cloud_storage_container, cloud_storage_user, cloud_storage_password, dba_name, dba_password, db_servicename, shape, version, vm_public_key,
# :level => level,
# :subscriptionType => subscription_type,
# :description => description)