Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Conv TTL Blocking
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Conv TTL Blocking
Commits
d9d7fec6
Commit
d9d7fec6
authored
6 years ago
by
Denia Bouhired-Ferrag
Browse files
Options
Downloads
Patches
Plain Diff
software: modification to log file name in remote upgrades
parent
0a65ba05
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/gwupdate/remote-mass-gw-upgrade.py
+1
-1
1 addition, 1 deletion
software/gwupdate/remote-mass-gw-upgrade.py
with
1 addition
and
1 deletion
software/gwupdate/remote-mass-gw-upgrade.py
+
1
−
1
View file @
d9d7fec6
...
...
@@ -180,7 +180,7 @@ if __name__ == "__main__":
#Generate log file
# Generate output file named according to current time
fname
=
time
.
strftime
(
"
remote-gwupgrade-%s-%Y-%m-%d
"
,
bid
,
time
.
localtime
())
+
"
.txt
"
fname
=
bid
+
"
-
"
+
time
.
strftime
(
"
remote-gwupgrade-%s-%Y-%m-%d
"
,
bid
,
time
.
localtime
())
+
"
.txt
"
ret
=
subprocess
.
call
([
"
ls ./log | grep
"
+
fname
],
shell
=
True
,
stdout
=
None
,
stderr
=
None
)
print
(
"
%d
"
%
ret
)
if
(
ret
!=
0
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment