puppetclassify 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppetclassify/environments.rb +1 -0
- data/lib/puppetclassify/groups.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24cffc7fa8e47a8e736fe56d25a790e3c2a60874
|
4
|
+
data.tar.gz: 4d03c7f46734ceb251c63b07b0eeda4b6c6a3381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0843dcbb300e3596b08dfa42531391182f7f0490b167ea18a6f323f12d125858906559269ae1f1d5c252205876071af8157d22ed6ee384f20a3c458609c2f76d
|
7
|
+
data.tar.gz: 91e4466dce0c364f03ae29f8ee79491959ff99e75d3bf9cea32df7561f6fb74a434d780017b44ced948c2cccbc29ac85c230dd2b7529ff411c8f8825ad0eb706
|
@@ -54,6 +54,7 @@ class Groups
|
|
54
54
|
|
55
55
|
if res.code.to_i >= 400
|
56
56
|
STDERR.puts "An error occured creating the group: HTTP #{res.code} #{res.message}"
|
57
|
+
STDERR.puts res.body
|
57
58
|
else
|
58
59
|
unless group_info['id']
|
59
60
|
res['location'].split("/")[-1]
|
@@ -69,6 +70,7 @@ class Groups
|
|
69
70
|
|
70
71
|
unless group_res.code.to_i == 200
|
71
72
|
STDERR.puts "Update Group failed: HTTP #{group_res.code} #{group_res.message}"
|
73
|
+
STDERR.puts group_res.body
|
72
74
|
end
|
73
75
|
end
|
74
76
|
|
@@ -76,6 +78,7 @@ class Groups
|
|
76
78
|
group_res = @puppet_https.delete("#{@nc_api_url}/v1/groups/#{group_id}")
|
77
79
|
if group_res.code.to_i != 204
|
78
80
|
STDERR.puts "An error occured deleting the group: HTTP #{group_res.code} #{group_res.message}"
|
81
|
+
STDERR.puts group_res.body
|
79
82
|
end
|
80
83
|
end
|
81
84
|
end
|