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
64037295
authored
May 08, 2014
by
cloud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: some change
parent
15add231
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
circle/vm/models/instance.py
+3
-5
No files found.
circle/vm/models/instance.py
View file @
64037295
...
...
@@ -29,7 +29,6 @@ from .common import BaseResourceConfigModel, Lease
from
.network
import
Interface
from
.node
import
Node
,
Trait
import
os
import
random
import
string
...
...
@@ -804,10 +803,9 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
# create hardlink
hlinkname
=
''
.
join
(
random
.
choice
(
string
.
ascii_uppercase
+
string
.
digits
)
for
_
in
range
(
20
))
remotedest
=
'/mnt/vmdisks/'
+
hlinkname
localdest
=
'/home/cloud/nfs/'
+
hlinkname
localsrc
=
'/home/cloud'
+
descriptor
[
'disk_list'
][
0
][
'source'
]
os
.
link
(
localsrc
,
localdest
)
return
pass
remotedest
=
'/home/gergo/vmdisks/'
+
hlinkname
localsrc
=
descriptor
[
'disk_list'
][
0
][
'source'
]
descriptor
[
'disk_list'
][
0
][
'source'
]
=
remotedest
return
descriptor
...
...
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