fog-oraclecloud 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e4b239a1b6936caca8c4f0a8f3c89ff7d697254
4
- data.tar.gz: 6c3243744a58ce2da4b0b70e60b477faf8316a65
3
+ metadata.gz: 3700003cc43c40fe91ac8153c9fe4da5bc069b30
4
+ data.tar.gz: c89e1f6a29d3a9b55bf82403da31ba0aeaaee355
5
5
  SHA512:
6
- metadata.gz: d3e67446447c21e58e428792e5ca5779f1474d21e9c97d6ddcb9209f3ac6aab85d5d81d96913a84a94d7e14657ea29d16c546a264ed6b42c77390a8ff66803d6
7
- data.tar.gz: 99802541bd95b63e88779b049872c4f87c6cdd01ac4aca5625f87b9c2c1042a1e64f4c064d9144cb0f65a72b4095fc5720c0fddee2c44396fa10cce7ad289a23
6
+ metadata.gz: a451d4b549101b765d7fe0caf826007a60546e3dddc37adb47b85513ab3aa0893699b25c32585a78ef980d44b1d8c4bd8b5ed0925461c74e3f98322571e30f42
7
+ data.tar.gz: b273ad4f94437ce9e1a798d65a983abb29a543e9f3033ee82db169b597431cc58e7fc2ae125d0f6fcbf25704ce40d2d7a9c7f62d66aae1be6d3e4554a5fc5211
@@ -105,10 +105,12 @@ module Fog
105
105
  value = 'yes'
106
106
  elsif value == false || value.nil?
107
107
  value = 'no'
108
+ end
109
+ if %w(yes no).include? value then
110
+ attributes[:failover_database]=value
108
111
  else
109
- raise ArgumentError, "Invalid failover database value (#{value})"
112
+ raise ArgumentError, "Invalid failover database value"
110
113
  end
111
- attributes[:failover_database] = value
112
114
  end
113
115
 
114
116
  def is_rac=(value)
@@ -116,10 +118,12 @@ module Fog
116
118
  value = 'yes'
117
119
  elsif value == false || value.nil?
118
120
  value = 'no'
121
+ end
122
+ if %w(yes no).include? value then
123
+ attributes[:is_rac]=value
119
124
  else
120
- raise ArgumentError, "Invalid is_rac value (#{value})"
125
+ raise ArgumentError, "Invalid is_rac value"
121
126
  end
122
- attributes[:is_rac]=value
123
127
  end
124
128
 
125
129
  def ncharset=(value)
@@ -122,6 +122,7 @@ module Fog
122
122
  end
123
123
 
124
124
  def num_nodes=(value)
125
+ if value.nil? then value = 1 end
125
126
  if [1, 2, 4, 8].include? value then
126
127
  attributes[:num_nodes]=value
127
128
  else
@@ -176,7 +177,7 @@ module Fog
176
177
  private
177
178
 
178
179
  def create
179
- requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key
180
+ requires :service_name, :dba_name, :dba_password, :db_service_name, :shape, :version, :ssh_key, :admin_password
180
181
 
181
182
  #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,
182
183
  # :level => level,
@@ -19,7 +19,7 @@ module Fog
19
19
  servers = self.data[:servers][db_name]
20
20
 
21
21
  response.body = {
22
- "servers" : [servers]
22
+ "servers" => servers
23
23
  }
24
24
  response
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module OracleCloud
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-oraclecloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Nation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler