@@ -89,8 +89,7 @@ def create_image_file(filename, size, context=None):
8989
9090 :param filename: The pathname of the image file (a string).
9191 :param size: How large the image file should be (see :func:`.coerce_size()`).
92- :param context: An execution context created by :mod:`executor.contexts`
93- (coerced using :func:`.coerce_context()`).
92+ :param context: See :func:`.coerce_context()` for details.
9493 :raises: :exc:`~exceptions.ValueError` when `size` is invalid,
9594 :exc:`~executor.ExternalCommandFailed` when the command fails.
9695 """
@@ -108,8 +107,7 @@ def generate_key_file(filename, size=DEFAULT_KEY_SIZE, context=None):
108107 :param filename: The pathname of the key file (a string).
109108 :param size: How large the key file should be (see :func:`.coerce_size()`,
110109 defaults to :data:`DEFAULT_KEY_SIZE`).
111- :param context: An execution context created by :mod:`executor.contexts`
112- (coerced using :func:`.coerce_context()`).
110+ :param context: See :func:`.coerce_context()` for details.
113111 :raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
114112 """
115113 context = coerce_context (context )
@@ -134,8 +132,7 @@ def create_encrypted_filesystem(device_file, key_file=None, context=None):
134132 :param device_file: The pathname of the block special device or file (a string).
135133 :param key_file: The pathname of the key file used to encrypt the
136134 filesystem (a string or :data:`None`).
137- :param context: An execution context created by :mod:`executor.contexts`
138- (coerced using :func:`.coerce_context()`).
135+ :param context: See :func:`.coerce_context()` for details.
139136 :raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
140137
141138 If no `key_file` is given the operator is prompted to choose a password.
@@ -164,8 +161,7 @@ def unlock_filesystem(device_file, target, key_file=None, options=None, context=
164161 :data:`None` (in which case the default options are used).
165162 Currently 'discard', 'readonly' and 'tries' are the only
166163 supported options (other options are silently ignored).
167- :param context: An execution context created by :mod:`executor.contexts`
168- (coerced using :func:`.coerce_context()`).
164+ :param context: See :func:`.coerce_context()` for details.
169165 :raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
170166
171167 If no `key_file` is given the operator is prompted to enter a password.
@@ -205,8 +201,7 @@ def lock_filesystem(target, context=None):
205201 Lock a currently unlocked LUKS filesystem.
206202
207203 :param target: The mapped device name (a string).
208- :param context: An execution context created by :mod:`executor.contexts`
209- (coerced using :func:`.coerce_context()`).
204+ :param context: See :func:`.coerce_context()` for details.
210205 :raises: :exc:`~executor.ExternalCommandFailed` when the command fails.
211206 """
212207 context = coerce_context (context )
@@ -220,8 +215,7 @@ def cryptdisks_start(target, context=None):
220215 Execute :man:`cryptdisks_start` or emulate its functionality.
221216
222217 :param target: The mapped device name (a string).
223- :param context: An execution context created by :mod:`executor.contexts`
224- (coerced using :func:`.coerce_context()`).
218+ :param context: See :func:`.coerce_context()` for details.
225219 :raises: :exc:`~executor.ExternalCommandFailed` when a command fails,
226220 :exc:`~exceptions.ValueError` when no entry in `/etc/crypttab`_
227221 matches `target`.
@@ -255,8 +249,7 @@ def cryptdisks_stop(target, context=None):
255249 Execute :man:`cryptdisks_stop` or emulate its functionality.
256250
257251 :param target: The mapped device name (a string).
258- :param context: An execution context created by :mod:`executor.contexts`
259- (coerced using :func:`.coerce_context()`).
252+ :param context: See :func:`.coerce_context()` for details.
260253 :raises: :exc:`~executor.ExternalCommandFailed` when a command fails,
261254 :exc:`~exceptions.ValueError` when no entry in `/etc/crypttab`_
262255 matches `target`.
0 commit comments