Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Klaus Wölfel
slapos.package
Commits
6edc61ba
Commit
6edc61ba
authored
Jan 24, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where the hostname would contain a newline
parent
d3f1deb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
slapprepare/CHANGES.txt
slapprepare/CHANGES.txt
+5
-0
slapprepare/slapprepare/slapprepare.py
slapprepare/slapprepare/slapprepare.py
+2
-1
No files found.
slapprepare/CHANGES.txt
View file @
6edc61ba
Changes
Changes
=======
=======
1.0.7 (unreleased)
------------------
* Fixed a bug where the hostname would contain a newline.
1.0a6 (2013-01-15)
1.0a6 (2013-01-15)
------------------
------------------
...
...
slapprepare/slapprepare/slapprepare.py
View file @
6edc61ba
...
@@ -136,8 +136,9 @@ def get_computer_name(slapos_configuration):
...
@@ -136,8 +136,9 @@ def get_computer_name(slapos_configuration):
try
:
try
:
conf_file
=
open
(
slapos_configuration
,
"r"
)
conf_file
=
open
(
slapos_configuration
,
"r"
)
for
line
in
conf_file
:
for
line
in
conf_file
:
line
=
line
.
rstrip
(
'
\
n
'
)
if
"computer_id"
in
line
:
if
"computer_id"
in
line
:
i
=
line
.
find
(
"COMP-"
)
i
=
line
.
find
(
"COMP-"
)
conf_file
.
close
()
conf_file
.
close
()
return
line
[
i
:]
return
line
[
i
:]
except
IOError
:
except
IOError
:
...
...
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