ruby-cute 0.9 → 0.10
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/lib/cute/g5k_api.rb +2 -13
- data/lib/cute/version.rb +1 -1
- 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: e75eb4ece743b61f9f6b99471737e8254a99ff24
|
|
4
|
+
data.tar.gz: 11cb6aa7d6f013d72b8b31724b608723b934f7b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ded1372ed4b88ae5937becf2d1c20a84bc70ce9ba3039328fe873804253b71e1a7cb2ea415de768dc6cfa27b751abfaa81c5d67d70ed834bb6222f2e46bb3f5
|
|
7
|
+
data.tar.gz: 37d332de8dda6d1df60125e282f4ea34e34dea46b8e8a94135168f5f37df577374ec863641ca3f20ff1f28b045d0e3e01c016aa540d19e88ebc011f3f31a4445
|
data/lib/cute/g5k_api.rb
CHANGED
|
@@ -1073,19 +1073,8 @@ module Cute
|
|
|
1073
1073
|
end
|
|
1074
1074
|
|
|
1075
1075
|
begin
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
# does not support some OAR options. Bug #7360: https://intranet.grid5000.fr/bugzilla/show_bug.cgi?id=7360
|
|
1079
|
-
if payload['import-job-key-from-file'] then
|
|
1080
|
-
|
|
1081
|
-
temp = @g5k_connection.post_json(api_uri("sites/#{site}/internal/oarapi/jobs"),payload)
|
|
1082
|
-
info debug_cmd(api_uri("sites/#{site}/internal/oarapi/jobs"),"POST",payload.to_json), :debug
|
|
1083
|
-
sleep 1 # This is for being sure that our job appears on the list
|
|
1084
|
-
r = get_my_jobs(site,nil).select{ |j| j["uid"] == temp["id"] }.first
|
|
1085
|
-
else
|
|
1086
|
-
info debug_cmd(api_uri("sites/#{site}/jobs"),"POST",payload.to_json), :debug
|
|
1087
|
-
r = @g5k_connection.post_json(api_uri("sites/#{site}/jobs"),payload) # This makes reference to the same class
|
|
1088
|
-
end
|
|
1076
|
+
info debug_cmd(api_uri("sites/#{site}/jobs"),"POST",payload.to_json), :debug
|
|
1077
|
+
r = @g5k_connection.post_json(api_uri("sites/#{site}/jobs"),payload) # This makes reference to the same class
|
|
1089
1078
|
rescue Error => e
|
|
1090
1079
|
info "Fail to submit job"
|
|
1091
1080
|
info e.message
|
data/lib/cute/version.rb
CHANGED