Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
01a0fa13
Commit
01a0fa13
authored
Oct 04, 2013
by
bennojoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc_storage rewrite commit 2
parent
834c9909
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/cloud/gc_storage
+2
-2
No files found.
library/cloud/gc_storage
View file @
01a0fa13
...
@@ -121,12 +121,12 @@ def grant_check(module, gs, obj):
...
@@ -121,12 +121,12 @@ def grant_check(module, gs, obj):
grant
=
[
x
for
x
in
acp
.
entries
.
entry_list
if
x
.
scope
.
type
==
'AllUsers'
]
grant
=
[
x
for
x
in
acp
.
entries
.
entry_list
if
x
.
scope
.
type
==
'AllUsers'
]
if
not
grant
:
if
not
grant
:
obj
.
set_acl
(
'public-read'
)
obj
.
set_acl
(
'public-read'
)
module
.
exit_json
(
changed
=
True
,
result
=
"The object
'
s permission as been set to public-read"
)
module
.
exit_json
(
changed
=
True
,
result
=
"The objects permission as been set to public-read"
)
if
module
.
params
.
get
(
'permission'
)
==
'authenticated-read'
:
if
module
.
params
.
get
(
'permission'
)
==
'authenticated-read'
:
grant
=
[
x
for
x
in
acp
.
entries
.
entry_list
if
x
.
scope
.
type
==
'AllAuthenticatedUsers'
]
grant
=
[
x
for
x
in
acp
.
entries
.
entry_list
if
x
.
scope
.
type
==
'AllAuthenticatedUsers'
]
if
not
grant
:
if
not
grant
:
obj
.
set_acl
(
'authenticated-read'
)
obj
.
set_acl
(
'authenticated-read'
)
module
.
exit_json
(
changed
=
True
,
result
=
"The object
'
s permission as been set to authenticated-read"
)
module
.
exit_json
(
changed
=
True
,
result
=
"The objects permission as been set to authenticated-read"
)
except
gs
.
provider
.
storage_response_error
,
e
:
except
gs
.
provider
.
storage_response_error
,
e
:
module
.
fail_json
(
msg
=
str
(
e
))
module
.
fail_json
(
msg
=
str
(
e
))
return
True
return
True
...
...
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