foreman_virt_who_configure 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee4227e4992392c6e28c5c78d67767da1b848d8f
|
4
|
+
data.tar.gz: 979259473442e7970dd08a06749b444eedde82cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99643747882bac9738c17cfabc6aab51e7e61e32e4c318f7942cb64009151bb4e0be21b4cef3f354c1e558c34f26be93e1901bc706bba72500656ce80194878
|
7
|
+
data.tar.gz: 18481a8b5857bdf33cc67b3f43d5af1607ff79d38d810db32d0936b24ff992dd9ff96264e69788a880fbf528064767fbae050fb24032988b14da6ba930c74716
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module SSO
|
2
2
|
class BasicWithHidden < Basic
|
3
3
|
def available?
|
4
|
-
|
4
|
+
authentication = Rack::Auth::Basic::Request.new(controller.request.env)
|
5
|
+
Thread.current[:service_user_login] = authentication.provided? && authentication.basic? && authentication.credentials.first =~ /virt_who_reporter_\d+/ && controller.api_request? && controller.is_a?(::Katello::Api::Rhsm::CandlepinProxiesController)
|
5
6
|
end
|
6
7
|
|
7
8
|
def current_user
|
@@ -16,11 +16,11 @@
|
|
16
16
|
<td><%= scope.where(:last_report_at => nil).count %></td>
|
17
17
|
</tr>
|
18
18
|
<tr>
|
19
|
-
<td><%= link_to _("
|
19
|
+
<td><%= link_to _("No Change"), foreman_virt_who_configure_configs_path(:search => "status = out_of_date") %></td>
|
20
20
|
<td><%= out_of_date.count %></td>
|
21
21
|
</tr>
|
22
22
|
<tr>
|
23
|
-
<td><%= link_to _("
|
23
|
+
<td><%= link_to _("OK"), foreman_virt_who_configure_configs_path(:search => "status = ok") %></td>
|
24
24
|
<td><%= scope.where.not(:last_report_at => nil).count - out_of_date.count %></td>
|
25
25
|
</tr>
|
26
26
|
<tr>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</tbody>
|
31
31
|
</table>
|
32
32
|
|
33
|
-
<h4 class="header" style="margin-top: 12px;"><%= _('Latest
|
33
|
+
<h4 class="header" style="margin-top: 12px;"><%= _('Latest Configurations Without Change') %></h4>
|
34
34
|
<% if out_of_date.empty? %>
|
35
35
|
<div class="ca"><%= _("No configuration found") %></div>
|
36
36
|
<% else %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_virt_who_configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman virt-who-configure team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|