Add operation and type since set option is batch command
This commit is contained in:
@@ -336,6 +336,9 @@ _key_map_32 = {
|
||||
def generate_v2(cs: ChangeSet) -> ChangeSet:
|
||||
op = cs.operations[0]
|
||||
|
||||
if op['type'] == 'option':
|
||||
return cs
|
||||
|
||||
map = _key_map_32
|
||||
|
||||
cs_v2 = {}
|
||||
@@ -367,6 +370,9 @@ def generate_v2(cs: ChangeSet) -> ChangeSet:
|
||||
def generate_v3(cs: ChangeSet) -> ChangeSet:
|
||||
op = cs.operations[0]
|
||||
|
||||
if op['type'] == 'option_v3':
|
||||
return cs
|
||||
|
||||
map = _key_map_23
|
||||
|
||||
cs_v3 = {}
|
||||
|
||||
Reference in New Issue
Block a user