Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4623425
input.py
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
506 B
Referenced Files
None
Subscribers
None
input.py
View Options
"""User input related utilities for CTS."""
__all__
=
[
"should_continue"
]
__copyright__
=
"Copyright 2000-2024 the Pacemaker project contributors"
__license__
=
"GNU General Public License version 2 or later (GPLv2+) WITHOUT ANY WARRANTY"
def
should_continue
(
env
):
"""On failure, prompt the user to see if we should continue."""
if
env
[
"continue"
]:
return
True
try
:
answer
=
input
(
"Continue? [yN]"
)
except
EOFError
:
answer
=
"n"
return
answer
in
[
"y"
,
"Y"
]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 8, 3:29 PM (14 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2002193
Default Alt Text
input.py (506 B)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment