foreman_cpp_cloudstack 0.1.6 → 0.1.7

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: 14088e20f875549969b36bad16706366ccc41961
4
- data.tar.gz: 89c07516d3a2a5f11f2e5fd320f7b02b6587cd91
3
+ metadata.gz: 70859d39233ad364b9c6c7f47474a72b0228c389
4
+ data.tar.gz: 618cd5e4e7f4ace2e515ce45723662468c78f20a
5
5
  SHA512:
6
- metadata.gz: c38c9cde889163aa86cee0c674619437f20c3f591f7a43c305b0038c794bed5f139bc16b86d6e7bdeb7a952709d452d7f4d0b5695a7211d60fea6011ac185fcd
7
- data.tar.gz: 88071ed5f6b04c5804ccd8f85597d7d810a729068087962f0eca0ad7f5c38b0763ebf3ef1d39f28ef54661760be6a24b2610d6a0aa6b8930ef83273896e54119
6
+ metadata.gz: a69fe60d56d3cfd516d51d0e36ed0bb48f4d9b712da06766ab4e42ba50dd09a97b1537f47a7b3294940bdf6fd68630f7afd90eae2359ee598ae03b4fb1bacf0a
7
+ data.tar.gz: f4c80196876a69a958f2f08bdf4fc9ff8d944d9a690028457144ac19aa5fa90ceea24ad64855166500d25ffbad5bb95cf114ea9484d196a65bce2e3021bb9828
@@ -20,21 +20,21 @@ module FogExtensions
20
20
  name
21
21
  end
22
22
 
23
- def ip_address
24
- logger.info "BG inspect nics:"
25
- logger.info nics.inspect
26
- return nics[0]["ipaddress"]
27
- end
28
-
29
- def test_method
30
- nics[0]["ipaddress"]
31
- end
23
+ def ip_address
24
+ nics[0]["ipaddress"]
25
+ end
26
+
27
+ def ip_addresses
28
+ nics.map { |n| n.ipaddress }
29
+ end
30
+
31
+ def mac_address
32
+ nics[0]["macaddress"]
33
+ end
32
34
 
33
- def ip_addresses
34
- logger.info "BG inspect nics:"
35
- logger.info nics.inspect
36
- nics.map { |n| n.ipaddress }
37
- end
35
+ def mac_addresses
36
+ nics.map { |n| n.macaddress }
37
+ end
38
38
 
39
39
  def start
40
40
  if state.downcase == 'paused'
@@ -119,7 +119,7 @@ module ForemanCPPCloudstack
119
119
  end
120
120
 
121
121
  def provided_attributes
122
- super.merge({ :ip => :test_method })
122
+ super.merge({ :ip => :ip_address, :mac => :mac_address })
123
123
  end
124
124
 
125
125
  def self.model_name
@@ -4,12 +4,6 @@
4
4
  <tr><th colspan="2">Properties</th></tr>
5
5
 
6
6
  <%= prop :availability_zone %>
7
- <% @vm.all_addresses.each do |address| %>
8
- <tr>
9
- <td><%= address["pool"] %> network</td>
10
- <td><%= address["ip"] %> (floating), <%= address["fixed_ip"] %> (fixed ip) </td>
11
- </tr>
12
- <% end %>
13
7
  <%= prop :state %>
14
8
  <%= prop :created_at %>
15
9
  <%= prop :flavor_with_object, "Flavor" %>
@@ -7,5 +7,5 @@
7
7
  ###########################################################################
8
8
 
9
9
  module ForemanCPPCloudstack
10
- VERSION = "0.1.6"
10
+ VERSION = "0.1.7"
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_cpp_cloudstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bytemine GmbH, Daniel Rauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake