Start work on copy instructions

This commit is contained in:
Kovid Goyal
2022-02-27 22:03:38 +05:30
parent e5ba15949b
commit 77c9affc00
7 changed files with 55 additions and 20 deletions

View File

@@ -4,6 +4,8 @@
from typing import Any, Dict, Optional, Iterable, Tuple
import posixpath
from ..copy import CopyInstruction
DELETE_ENV_VAR = '_delete_this_env_var_'
@@ -30,6 +32,10 @@ def env(val: str, current_val: Dict[str, str]) -> Iterable[Tuple[str, str]]:
yield val, DELETE_ENV_VAR
def copy(val: str, current_val: Dict[str, str]) -> Iterable[Tuple[str, CopyInstruction]]:
pass
def init_results_dict(ans: Dict[str, Any]) -> Dict[str, Any]:
ans['hostname'] = '*'
ans['per_host_dicts'] = {}