Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
cd34e7bf
Commit
cd34e7bf
authored
Dec 14, 2008
by
Iustin Pop
Browse files
cleanup: SetEtcHostsEntry unused var
Reviewed-by: amishchenko
parent
a0add446
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/utils.py
View file @
cd34e7bf
...
...
@@ -834,7 +834,6 @@ def SetEtcHostsEntry(file_name, ip, hostname, aliases):
try
:
f
=
open
(
file_name
,
'r'
)
try
:
written
=
False
for
line
in
f
:
fields
=
line
.
split
()
if
fields
and
not
fields
[
0
].
startswith
(
'#'
)
and
ip
==
fields
[
0
]:
...
...
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