arvados-login-sync 2.4.4 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/arvados-login-sync +11 -6
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1098d1247fcad2f3e1c71c6ee6a629ae34ec21a838009ddcb09b27425e42ef5
|
4
|
+
data.tar.gz: 943ffd362f7f8af596378109a8f21b2ec00953051ad902cfc534e33e1f5aef42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10dc0177db72bf2a0a1378c702c7a9e8ceccb7fe7bead9357b0e137852f45b67664212b4528aaf06daffa86e6361a69d851478c0cd70e78bcc7eb96488282845
|
7
|
+
data.tar.gz: f7cf7017636ab6ff9b09750379660bd8fff1df52bbe5c87632234cdab34f4f2613740a7365253e571f07358594510d95074cccc7c394b544891a7c02c2281c16
|
data/bin/arvados-login-sync
CHANGED
@@ -42,9 +42,14 @@ begin
|
|
42
42
|
debug = true
|
43
43
|
end
|
44
44
|
arv = Arvados.new({ :suppress_ssl_warnings => false })
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
logincluster_host = ENV['ARVADOS_API_HOST']
|
46
|
+
logincluster_name = arv.cluster_config['Login']['LoginCluster'] or ''
|
47
|
+
|
48
|
+
if logincluster_name != '' and logincluster_name != arv.cluster_config['ClusterID']
|
49
|
+
logincluster_host = arv.cluster_config['RemoteClusters'][logincluster_name]['Host']
|
50
|
+
end
|
51
|
+
logincluster_arv = Arvados.new({ :api_host => logincluster_host,
|
52
|
+
:suppress_ssl_warnings => false })
|
48
53
|
|
49
54
|
vm_uuid = ENV['ARVADOS_VIRTUAL_MACHINE_UUID']
|
50
55
|
|
@@ -219,9 +224,9 @@ begin
|
|
219
224
|
userEnv = IO::read(tokenfile)
|
220
225
|
if (m = /^ARVADOS_API_TOKEN=(.*?\n)/m.match(userEnv))
|
221
226
|
begin
|
222
|
-
tmp_arv = Arvados.new({ :api_host =>
|
223
|
-
|
224
|
-
|
227
|
+
tmp_arv = Arvados.new({ :api_host => logincluster_host,
|
228
|
+
:api_token => (m[1]),
|
229
|
+
:suppress_ssl_warnings => false })
|
225
230
|
tmp_arv.user.current
|
226
231
|
rescue Arvados::TransactionFailedError => e
|
227
232
|
if e.to_s =~ /401 Unauthorized/
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arvados-login-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvados Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arvados
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.4'
|
20
|
+
- - ">"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.4.4a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.4'
|
30
|
+
- - ">"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.4.4a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: launchy
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +79,7 @@ dependencies:
|
|
73
79
|
- !ruby/object:Gem::Version
|
74
80
|
version: '0.12'
|
75
81
|
description: Creates and updates local login accounts for Arvados users. Built from
|
76
|
-
git commit
|
82
|
+
git commit 83974ae9df4060f7aaa6bba61997404a2a7405b2
|
77
83
|
email: packaging@arvados.org
|
78
84
|
executables:
|
79
85
|
- arvados-login-sync
|