diff options
author | John Estabrook <jestabro@vyos.io> | 2023-01-11 08:44:51 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-01-11 08:44:51 -0600 |
commit | 2b00908524e6c5097ca3452b50288e0ac18a73f5 (patch) | |
tree | 1ff6015e51b980c8e7a7394677f9880a97b4b244 /python/vyos | |
parent | a7acd12facc6163c1004e39d36feb25261e38aad (diff) | |
download | vyos-1x-2b00908524e6c5097ca3452b50288e0ac18a73f5.tar.gz vyos-1x-2b00908524e6c5097ca3452b50288e0ac18a73f5.zip |
container: T4880: fix name collision
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configsession.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py index 9864aa5c5..df44fd8d6 100644 --- a/python/vyos/configsession.py +++ b/python/vyos/configsession.py @@ -34,8 +34,8 @@ REMOVE_IMAGE = ['/opt/vyatta/bin/vyatta-boot-image.pl', '--del'] GENERATE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'generate'] SHOW = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'show'] RESET = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'reset'] -ADD = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'add'] -DELETE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'delete'] +OP_CMD_ADD = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'add'] +OP_CMD_DELETE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'delete'] # Default "commit via" string APP = "vyos-http-api" @@ -208,11 +208,11 @@ class ConfigSession(object): return out def add_container_image(self, name): - out = self.__run_command(ADD + ['container', 'image'] + [name]) + out = self.__run_command(OP_CMD_ADD + ['container', 'image'] + [name]) return out def delete_container_image(self, name): - out = self.__run_command(DELETE + ['container', 'image'] + [name]) + out = self.__run_command(OP_CMD_DELETE + ['container', 'image'] + [name]) return out def show_container_image(self): |