Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benjamin Graillot
scripts
Commits
aa23f8ab
Commit
aa23f8ab
authored
Nov 30, 2017
by
Hamza Dely
Browse files
Depuis @
0579ac9b
, udev_update_symlinks.py ne fonctionnait plus correctement
parent
e5a3f476
Changes
1
Show whitespace changes
Inline
Side-by-side
gestion/iscsi/udev_update_symlinks.py
View file @
aa23f8ab
...
...
@@ -31,7 +31,7 @@ def store_iscsi_volumes():
baie
=
"slon"
device
=
os
.
readlink
(
PATH
+
line
)
# de la forme ../../sdb42
device
=
device
.
rsplit
(
'/'
,
1
)[
1
]
symlink
=
'iscsi_'
+
ugin
.
getname
(
device
,
baie
)
symlink
=
'iscsi_'
+
ugin
.
getname
(
device
)
if
line
.
rsplit
(
'-'
,
1
)[
1
][
0
:
4
]
==
"part"
:
lun
=
line
.
rsplit
(
'-'
,
2
)[
1
]
else
:
...
...
Write
Preview
Supports
Markdown
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