Add warning about the `stdin` argument being in Alpha.
@@ -135,6 +135,11 @@ class FallbackDict(object):
return out
+@memoize
+def show_stdin_global_warning():
+ logger.warning('The stdin global argument is in Alpha!')
+
+
def pop_global_op_kwargs(state, kwargs):
'''
Pop and return operation global keyword arguments.
@@ -169,6 +174,9 @@ def pop_global_op_kwargs(state, kwargs):
}
# TODO: end remove hosts/when block
+ if 'stdin' in kwargs:
+ show_stdin_global_warning()
+
for _, kwarg_configs in OPERATION_KWARGS.items():
for key, config in kwarg_configs.items():
handler = None
