Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
5117d288
Commit
5117d288
authored
Aug 01, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort imports
parent
9547ca8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
23 deletions
+20
-23
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+20
-23
No files found.
slapos/grid/slapgrid.py
View file @
5117d288
...
...
@@ -27,42 +27,39 @@
#
##############################################################################
import
argparse
import
ConfigParser
from
hashlib
import
md5
from
lxml
import
etree
import
logging
import
os
import
sys
import
pkg_resources
from
random
import
random
import
socket
import
subprocess
import
StringIO
import
sys
import
tempfile
import
time
import
traceback
import
warnings
if
sys
.
version_info
<
(
2
,
6
):
warnings
.
warn
(
'Used python version (%s) is old and have problems with'
' IPv6 connections'
%
sys
.
version
.
split
(
'
\
n
'
)[
0
])
import
socket
import
subprocess
import
traceback
import
time
#from time import strftime
from
slapos.slap.slap
import
NotFoundError
from
slapos.slap.slap
import
ServerError
from
SlapObject
import
Software
,
Partition
,
WrongPermissionError
,
\
PathDoesNotExistError
import
argparse
import
ConfigParser
from
utils
import
updateFile
from
svcbackend
import
launchSupervisord
from
utils
import
createPrivateDirectory
from
utils
import
dropPrivileges
from
utils
import
getSoftwareUrlHash
from
utils
import
setRunning
from
utils
import
setFinished
from
utils
import
getSoftwareUrlHash
from
slapos
import
slap
from
slapos.slap.slap
import
ServerError
from
utils
import
dropPrivileges
from
utils
import
SlapPopen
from
svcbackend
import
launchSupervisord
import
tempfile
from
time
import
strftime
import
StringIO
from
lxml
import
etree
from
random
import
random
from
slapos.slap.slap
import
NotFoundError
from
hashlib
import
md5
from
utils
import
updateFile
from
slapos
import
slap
MANDATORY_PARAMETER_LIST
=
[
'computer_id'
,
...
...
@@ -737,7 +734,7 @@ class Slapgrid(object):
"<source></source>"
\
"<destination></destination>"
\
"</arrow>"
\
%
(
strftime
(
"%Y-%m-%d at %H:%M:%S"
),
%
(
time
.
strftime
(
"%Y-%m-%d at %H:%M:%S"
),
self
.
computer_id
)
for
computer_partition_usage
in
computer_partition_usage_list
:
...
...
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