Roles
This commit is contained in:
@@ -142,6 +142,18 @@ class _ProxySession:
|
||||
"has_open_quote": bool(value_m.group(2)),
|
||||
}
|
||||
|
||||
# Check if cursor is inside an array value for a param
|
||||
# e.g. "roles: ['KEY_VAULT_" or "roles: [ '"
|
||||
array_m = re.search(r"^\s*(\w+):\s*\[[^\]]*?('?)([^',\]]*)$", current)
|
||||
if array_m and array_m.group(1) not in {"params", "name", "module", "resource"}:
|
||||
return {
|
||||
"type": "param_value",
|
||||
"module": mod_name,
|
||||
"version": mod_ver,
|
||||
"param": array_m.group(1),
|
||||
"has_open_quote": bool(array_m.group(2)),
|
||||
}
|
||||
|
||||
return {
|
||||
"type": "param",
|
||||
"module": mod_name,
|
||||
|
||||
Reference in New Issue
Block a user