Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3151621
transfer.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
465 B
Referenced Files
None
Subscribers
None
transfer.py
View Options
#!/usr/bin/python
from
fencing
import
*
def
main
():
for
key
in
all_opt
.
keys
():
if
all_opt
[
key
]
.
has_key
(
"getopt"
)
and
all_opt
[
key
]
.
has_key
(
"longopt"
):
print
"s/options\[
\"
-"
+
all_opt
[
key
][
"getopt"
]
.
rstrip
(
":"
)
+
"
\"
\]/options[
\"
--"
+
\
all_opt
[
key
][
"longopt"
]
+
"
\"
]/g"
print
"s/options.has_key(
\"
-"
+
all_opt
[
key
][
"getopt"
]
.
rstrip
(
":"
)
+
"
\"
)/options.has_key("
+
\
"
\"
--"
+
all_opt
[
key
][
"longopt"
]
+
"
\"
)/g"
if
__name__
==
"__main__"
:
main
()
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Feb 24, 7:37 AM (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1461042
Default Alt Text
transfer.py (465 B)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment