Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8e3bcfa1
authored
Sep 01, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: use request.user instead of inst.owner in MountStoreOperation
parent
3732fbb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
circle/vm/operations.py
+3
-3
No files found.
circle/vm/operations.py
View file @
8e3bcfa1
...
...
@@ -1003,12 +1003,12 @@ class MountStoreOperation(EnsureAgentMixin, InstanceOperation):
except
NoStoreException
:
raise
PermissionDenied
# not show the button at all
def
_operation
(
self
):
def
_operation
(
self
,
user
):
inst
=
self
.
instance
queue
=
self
.
instance
.
get_remote_queue_name
(
"agent"
)
host
=
urlsplit
(
settings
.
STORE_URL
)
.
hostname
username
=
Store
(
inst
.
own
er
)
.
username
password
=
inst
.
own
er
.
profile
.
smb_password
username
=
Store
(
us
er
)
.
username
password
=
us
er
.
profile
.
smb_password
agent_tasks
.
mount_store
.
apply_async
(
queue
=
queue
,
args
=
(
inst
.
vm_name
,
host
,
username
,
password
))
...
...
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