Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
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
...
@@ -29,7 +29,6 @@ from .common import BaseResourceConfigModel, Lease
from
.network
import
Interface
from
.network
import
Interface
from
.node
import
Node
,
Trait
from
.node
import
Node
,
Trait
import
os
import
random
import
random
import
string
import
string
...
@@ -804,10 +803,9 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
...
@@ -804,10 +803,9 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
# create hardlink
# create hardlink
hlinkname
=
''
.
join
(
random
.
choice
(
string
.
ascii_uppercase
+
hlinkname
=
''
.
join
(
random
.
choice
(
string
.
ascii_uppercase
+
string
.
digits
)
for
_
in
range
(
20
))
string
.
digits
)
for
_
in
range
(
20
))
remotedest
=
'/mnt/vmdisks/'
+
hlinkname
return
pass
localdest
=
'/home/cloud/nfs/'
+
hlinkname
remotedest
=
'/home/gergo/vmdisks/'
+
hlinkname
localsrc
=
'/home/cloud'
+
descriptor
[
'disk_list'
][
0
][
'source'
]
localsrc
=
descriptor
[
'disk_list'
][
0
][
'source'
]
os
.
link
(
localsrc
,
localdest
)
descriptor
[
'disk_list'
][
0
][
'source'
]
=
remotedest
descriptor
[
'disk_list'
][
0
][
'source'
]
=
remotedest
return
descriptor
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