bosh_vcloud_cpi 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 631972cbe9ebb1d34753f50afa184b2e0f99f5b7
4
- data.tar.gz: 4afd0a8fe7f88e48ece8ed491873e89a0c804528
3
+ metadata.gz: 41e5d22c34259d525d80fc93be300ffa45e488ea
4
+ data.tar.gz: 1f2f2f26e17204abcbab95e1078ec405896527c2
5
5
  SHA512:
6
- metadata.gz: dba493026be365861d5871760c420234e48658b6deec07bb787c50a10fd1fe4333fb38542df6363641f4b345aa804210fb4c7c43e335464570e5a0c1ee48e5a2
7
- data.tar.gz: 33bab3c5429fdf91eed0caa1a10f2d28e9734500df1d4f0db8908a53786180d60c475defb1ea16df3433fdee2a3e2a4cac53c7c282a1bca8cf0dbc3f8ccb9c06
6
+ metadata.gz: 0cb34fbb4d4d08130189df95857053638a1823f7fcfeca00a974a108e5ce22ca2f07a368c2c57066cad285359e9c39fb5b8e7971245a67679097d9cead34025f
7
+ data.tar.gz: d77e38d6eb5246831bd737368bae9368e91aec2eebe2e8f4ac9aae53a2110fcb35f699c62ddb523b3414787f4d2a8ca2f2e6bbd852ab3c5a8ed7c856e6b0c73f
@@ -10,25 +10,23 @@ module VCloudCloud
10
10
  link,
11
11
  :payload => catalog,
12
12
  :headers => { :content_type => link.type }
13
- state[:catalog] = client.wait_entity result
13
+ catalog = client.wait_entity result
14
14
  client.flush_cache
15
+ return catalog
15
16
  rescue RestClient::BadRequest
16
17
  # check if catalog already exists; if so, this is not an error
17
18
  client.flush_cache
18
19
  catalog = client.org.catalog_link(name)
19
20
  if catalog
20
- return catalog
21
+ return client.resolve_link(catalog)
21
22
  end
22
23
  raise
23
24
  end
24
25
  end
25
26
 
26
27
  def rollback
27
- catalog = state[:catalog]
28
- return unless catalog
29
-
30
- client.invoke :delete, catalog
31
- state.delete :catalog
28
+ # rollback is purposely not implemented because it could affect VMs
29
+ # in other deployments that share the same catalog
32
30
  end
33
31
  end
34
32
  end
@@ -92,6 +92,10 @@ module VCloudSdk
92
92
  @root["href"]
93
93
  end
94
94
 
95
+ def href_id
96
+ href.split('/')[-1]
97
+ end
98
+
95
99
  def name
96
100
  @root["name"]
97
101
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh_vcloud_cpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_common
@@ -124,7 +124,7 @@ dependencies:
124
124
  version: '0'
125
125
  description: |-
126
126
  BOSH vCloud CPI
127
- 697696
127
+ d7afb6
128
128
  email: support@cloudfoundry.com
129
129
  executables: []
130
130
  extensions: []