ruby-puppetdb 1.3.1 → 1.3.2
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 +4 -4
- data/Modulefile +1 -1
- data/lib/puppet/face/query.rb +4 -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: 7b58daac1cb0173a064f167485d0bf20d8449ffd
|
|
4
|
+
data.tar.gz: 0fec9c12a0b9bd770784a74b40a538713ab6d16e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 556ac354e46c631a0d1644091511cd6500de0d953675e35127c75899e14f277da459a4bde03fcd044cb6a78e8b1fab8a204c76801bcbfc43a6e20b9815f74b5e
|
|
7
|
+
data.tar.gz: ccc5a8d8fd863c82bb142a25d4d9fdacbb34a7d9c1cda91f9c63ba7ed2b7b228da4c1a36867b726e62dd47d073a0197f2f361408556a11dd3089b4b3ec102bdf
|
data/Modulefile
CHANGED
data/lib/puppet/face/query.rb
CHANGED
|
@@ -113,8 +113,8 @@ Puppet::Face.define(:query, '1.0.0') do
|
|
|
113
113
|
|
|
114
114
|
puppetdb = PuppetDB::Connection.new options[:puppetdb_host], options[:puppetdb_port]
|
|
115
115
|
nodes = puppetdb.query(:nodes, puppetdb.parse_query(query, :nodes)).collect { |n| n['name']}
|
|
116
|
-
starttime = Chronic.parse(options[:since], :context => :past, :guess => false).first.getutc.strftime('%FT%T
|
|
117
|
-
endtime = Chronic.parse(options[:until], :context => :past, :guess => false).last.getutc.strftime('%FT%T
|
|
116
|
+
starttime = Chronic.parse(options[:since], :context => :past, :guess => false).first.getutc.strftime('%FT%T.000Z')
|
|
117
|
+
endtime = Chronic.parse(options[:until], :context => :past, :guess => false).last.getutc.strftime('%FT%T.000Z')
|
|
118
118
|
|
|
119
119
|
events = []
|
|
120
120
|
# Event API doesn't support subqueries at the moment and
|
|
@@ -140,6 +140,8 @@ Puppet::Face.define(:query, '1.0.0') do
|
|
|
140
140
|
puts colorize(:green, out)
|
|
141
141
|
when 'skipped'
|
|
142
142
|
puts colorize(:hyellow, out) unless e['resource-type'] == 'Schedule'
|
|
143
|
+
when 'noop'
|
|
144
|
+
puts out
|
|
143
145
|
end
|
|
144
146
|
end
|
|
145
147
|
nil
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-puppetdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Bode
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json
|