Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
0
Merge Requests
0
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
Stephane VAROQUI
slapos
Commits
6959607c
Commit
6959607c
authored
Dec 30, 2019
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kvm/test: add support for Python 3
parent
8f04f4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
software/kvm/test/test.py
software/kvm/test/test.py
+4
-4
No files found.
software/kvm/test/test.py
View file @
6959607c
...
...
@@ -25,7 +25,7 @@
#
##############################################################################
import
httplib
import
six.moves.http_client
as
httplib
import
json
import
os
import
re
...
...
@@ -33,7 +33,7 @@ import requests
import
slapos.util
import
subprocess
import
sqlite3
import
urlparse
from
six.moves.urllib.parse
import
parse_qs
,
urlparse
import
unittest
from
slapos.recipe.librecipe
import
generateHashFromFiles
...
...
@@ -48,7 +48,7 @@ def sanityCheck():
output
=
e
.
output
else
:
state
=
True
if
state
is
True
and
re
.
search
(
r'kvm.*kvm_intel'
,
output
):
if
state
is
True
and
re
.
search
(
b
r'kvm.*kvm_intel'
,
output
):
return
True
...
...
@@ -131,7 +131,7 @@ class MonitorAccessMixin(object):
monitor_setup_url
=
connection_parameter_dict
[
'monitor-setup-url'
]
monitor_url_with_auth
=
'https'
+
monitor_setup_url
.
split
(
'https'
)[
2
]
auth
=
urlparse
.
parse_qs
(
urlparse
.
urlparse
(
monitor_url_with_auth
).
path
)
auth
=
parse_qs
(
urlparse
(
monitor_url_with_auth
).
path
)
# check that monitor-base-url for all partitions in the tree are accessible
# with published username and 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