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 +4 -4
- data/lib/ovirt/version.rb +1 -1
- data/lib/ovirt/vm.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83b73f685b025a3afd379705265e116aa525627
|
4
|
+
data.tar.gz: 5e8efbf70f5709595e2739cecce78d7e4b898774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd22160aa03f49f81f2c68280a7dce02d0751e06b55ff09f33477f8e507a2e5a2add76e1c4a6f2048c8482490b720618975201dfd44e2dcc8a507bde7aed03a
|
7
|
+
data.tar.gz: 5d5207f581f19897acc53f3433caa61ce1f47bf09d3c7c71c30ca8e9ba72071bee2b9a93f9abac05ae5f84db2339e3c497a4d533a5994549cc735eb8e228445c
|
data/lib/ovirt/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|