Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
baas
Commits
085e714f
Commit
085e714f
authored
Nov 13, 2015
by
Efthymia Bika
Browse files
Remove redundant iterations
parent
93900683
Changes
1
Show whitespace changes
Inline
Side-by-side
baas/dup_calls.js
View file @
085e714f
...
...
@@ -20,12 +20,9 @@ function set_envs() {
}
var
sel_cloud
=
$
(
"
#cloud
"
).
val
()
?
$
(
"
#cloud
"
)
:
$
(
"
#res-cloud
"
);
var
cloud_name
=
sel_cloud
.
val
().
replace
(
/^
\s
+|
\s
+$/gm
,
''
);
$
.
each
(
clouds
,
function
(
i
,
cloud
)
{
if
(
cloud
.
name
==
cloud_name
)
{
var
cloud
=
clouds
[
cloud_name
];
process
.
env
[
'
SWIFT_PREAUTHURL
'
]
=
cloud
.
pithos_public
+
'
/
'
+
cloud
.
uuid
;
process
.
env
[
'
SWIFT_PREAUTHTOKEN
'
]
=
cloud
.
token
;
}
});
}
function
build_win_commands
()
{
...
...
@@ -34,12 +31,10 @@ function build_win_commands() {
var
preauth_url
=
null
;
var
preauth_token
=
null
;
$
.
each
(
clouds
,
function
(
i
,
cloud
)
{
if
(
cloud
.
name
==
cloud_name
)
{
var
cloud
=
clouds
[
cloud_name
];
preauth_url
=
cloud
.
pithos_public
+
'
/
'
+
cloud
.
uuid
;
preauth_token
=
cloud
.
token
;
}
});
return
"
export PATH=/usr/bin/:$PATH;
"
+
"
ulimit -n 1024;
"
+
"
export PASSPHRASE=
"
+
passphrase
+
"
;
"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment