Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Kirill Smelkov
slapos.toolbox
Commits
65155b45
Commit
65155b45
authored
Jun 13, 2022
by
Thomas Leymonerie
Committed by
Thomas Gambier
Jun 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos/pusub/notifier.py: Add support for Python 3.8+
parent
4be746d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
slapos/pubsub/notifier.py
slapos/pubsub/notifier.py
+7
-3
No files found.
slapos/pubsub/notifier.py
View file @
65155b45
...
...
@@ -3,7 +3,6 @@
from
__future__
import
print_function
import
argparse
import
cgi
import
csv
import
datetime
import
json
...
...
@@ -19,6 +18,11 @@ from six.moves.urllib.request import urlopen
from
six.moves.urllib.parse
import
urlparse
import
uuid
if
sys
.
version_info
[:
2
]
>=
(
3
,
8
):
from
html
import
escape
else
:
from
cgi
import
escape
def
createStatusItem
(
item_directory
,
instance_name
,
callback
,
date
,
link
,
status
):
global
app
callback_short_name
=
os
.
path
.
basename
(
callback
)
...
...
@@ -97,7 +101,7 @@ def main():
content
=
(
"OK</br><p>%s ran successfully</p>"
"<p>Output is: </p><pre>%s</pre>"
%
(
args
.
executable
[
0
],
cgi
.
escape
(
content
)
escape
(
content
)
))
saveStatus
(
'FINISHED'
)
break
...
...
@@ -110,7 +114,7 @@ def main():
"<p>Output is: </p><pre>%s</pre>"
%
(
args
.
executable
[
0
],
exit_code
,
cgi
.
escape
(
content
)
escape
(
content
)
))
print
(
content
)
...
...
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