rbovirt 0.0.25 → 0.0.26

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: bbf4809e79266592a914373c43ca2c7320f9c30c
4
- data.tar.gz: f512616ec7f997cc16e4eb9a5ea88ade0f55dd85
3
+ metadata.gz: f83b73f685b025a3afd379705265e116aa525627
4
+ data.tar.gz: 5e8efbf70f5709595e2739cecce78d7e4b898774
5
5
  SHA512:
6
- metadata.gz: c02b15dde847438cdc88e88fb718afadbd4c8fda3bc68dc40630a25c6ac3732e929afada3c0426b07cf2aeebe8d8a3d06338f6f01378db3a8229e8ba5d77473f
7
- data.tar.gz: 417a0b4156d1a9d5c7bfa4cdbe9c7927aa5f0a64afb6572b95ba357811fa524e25ea666c7c57807c08b5ff594bfc6f21c4b588926fe9f669837b7dee7b5ab69d
6
+ metadata.gz: 9bd22160aa03f49f81f2c68280a7dce02d0751e06b55ff09f33477f8e507a2e5a2add76e1c4a6f2048c8482490b720618975201dfd44e2dcc8a507bde7aed03a
7
+ data.tar.gz: 5d5207f581f19897acc53f3433caa61ce1f47bf09d3c7c71c30ca8e9ba72071bee2b9a93f9abac05ae5f84db2339e3c497a4d533a5994549cc735eb8e228445c
data/lib/ovirt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OVIRT
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
data/lib/ovirt/vm.rb CHANGED
@@ -50,9 +50,9 @@ module OVIRT
50
50
  builder = Nokogiri::XML::Builder.new do
51
51
  vm{
52
52
  name_ opts[:name] || "i-#{Time.now.to_i}"
53
- if opts[:template]
53
+ if opts[:template] && !opts[:template].empty?
54
54
  template_ :id => (opts[:template])
55
- elsif opts[:template_name]
55
+ elsif opts[:template_name] && !opts[:template_name].empty?
56
56
  template_{ name_(opts[:template_name])}
57
57
  else
58
58
  template_{name_('Blank')}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Benari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-02 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri