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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
slapos
Commits
47bd4fcb
Commit
47bd4fcb
authored
Jan 23, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: fix folder exist with apachedex
parent
fda687cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
stack/monitor/buildout.cfg
stack/monitor/buildout.cfg
+1
-1
stack/monitor/run-apachedex.py.in
stack/monitor/run-apachedex.py.in
+8
-2
No files found.
stack/monitor/buildout.cfg
View file @
47bd4fcb
...
@@ -147,7 +147,7 @@ mode = 0644
...
@@ -147,7 +147,7 @@ mode = 0644
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
url = ${:_profile_base_location_}/${:filename}
download-only = true
download-only = true
md5sum =
00b230e1dee6e7f25d2050f6f0ae39e2
md5sum =
54c8a93ab16918392784794dd86d221e
filename = run-apachedex.py.in
filename = run-apachedex.py.in
mode = 0644
mode = 0644
...
...
stack/monitor/run-apachedex.py.in
View file @
47bd4fcb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# BEWARE: This file is operated by slapgrid
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# BEWARE: It will be overwritten automatically
import os
import os
, errno
import subprocess
import subprocess
from datetime import date
from datetime import date
...
@@ -26,8 +26,14 @@ if not os.path.exists(output_folder) or not os.path.isdir(output_folder):
...
@@ -26,8 +26,14 @@ if not os.path.exists(output_folder) or not os.path.isdir(output_folder):
exit(1)
exit(1)
today = date.today().strftime("%Y-%m-%d")
today = date.today().strftime("%Y-%m-%d")
folder_today = os.path.join(output_folder, 'ApacheDex-%s' % today)
folder_today = os.path.join(output_folder, 'ApacheDex-%s' % today)
if not os.path.exists(folder_today):
# XXX- don't raise if folder_today exist
try:
os.makedirs(folder_today)
os.makedirs(folder_today)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(folder_today):
pass
else: raise
apachedex = "{{ apachedex_executable }}".strip()
apachedex = "{{ apachedex_executable }}".strip()
argument_list = [apachedex, '--js-embed', '--out',
argument_list = [apachedex, '--js-embed', '--out',
...
...
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