gogetit 0.22.6 → 0.22.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
  SHA256:
3
- metadata.gz: 5a4ad33d9e3ba2abd56517e7b492c6783ff9ffd3b5c31cacae0d9a4f08aca465
4
- data.tar.gz: d0fd8947a53283a51888d5cbf348647c29d889fd8998b94d7692bd6f56e8e0d9
3
+ metadata.gz: 56768c5597c785d376b338f377fc5e4ed1e80513ada5c78bd1a2b8d766ebeaa6
4
+ data.tar.gz: 961f3621c7b86aa4f3f7f057994c61f4d3952038215395b489ba7fe57483f06b
5
5
  SHA512:
6
- metadata.gz: 53fd56efeb9ec487cecc93736a502a8989c1c9c72b85144e712fc6b6313ab5b30eabfa0ee9d22bc69317a1e7cde4421041ce1cc6ad04f1ccf8bdaa7a94a97eb1
7
- data.tar.gz: cbced91db630cee9cb53eebaba6e644392b44f8a33958b54a085f894c58709f50514eebac82a3470af425bfaecaf182275268e97d8abee1ea2d6b32b02dfe7e9
6
+ metadata.gz: f703dce8b2d9f0cb5ee54a6fec244aa32988e5c6e84ef1b5af86ceb9af09793c06e9e78aa149ed1c56749641b51d7db7b7ecdebe785af8a80c6c8dc199ad7292
7
+ data.tar.gz: c37784f2ff981c7a1c50008ddffb17bd3bb15d9d36312070aff9b93c4c1e37675b6ac75d6750b65fd4545b537fbd3ba79694e1fc4531358570a259ed141fc65a
data/lib/gogetit.rb CHANGED
@@ -49,7 +49,15 @@ module Gogetit
49
49
 
50
50
  # for Libvirt(KVM), machines in pods controlled by MAAS
51
51
  conn = maas.conn
52
- machines = conn.request(:get, ['machines'])
52
+ begin
53
+ machines = conn.request(:get, ['machines'])
54
+ rescue StandardError => e
55
+ puts e
56
+ abort(
57
+ "This method depends on MAAS with maas-client.\n"\
58
+ "Please check if MAAS or maas-client is configured properly."
59
+ )
60
+ end
53
61
  config[:libvirt][:nodes].each do |node|
54
62
  puts "Listing KVM instances on #{node[:url]}..."
55
63
  machines.each do |machine|
@@ -1,3 +1,3 @@
1
1
  module Gogetit
2
- VERSION = "0.22.6"
2
+ VERSION = "0.22.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogetit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.6
4
+ version: 0.22.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Draper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler