summaryrefslogtreecommitdiff
path: root/docs/automation/command-scripting.rst
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2022-06-29 21:30:10 +0200
committerGitHub <noreply@github.com>2022-06-29 21:30:10 +0200
commitf900975d560bab1d056a6cdd75e4d5bb770c3e4a (patch)
treef428d2f8dd542d659d87886cd18d6e2d5ee2c253 /docs/automation/command-scripting.rst
parentb0544eab8dfbe583686c1fdb98241eaee6d11d8f (diff)
parent9e5bbd134120b9a5436665124326ddb2d5aa5f87 (diff)
downloadvyos-documentation-f900975d560bab1d056a6cdd75e4d5bb770c3e4a.tar.gz
vyos-documentation-f900975d560bab1d056a6cdd75e4d5bb770c3e4a.zip
Merge pull request #798 from zlibd/patch-2
Updated syntax to python3
Diffstat (limited to 'docs/automation/command-scripting.rst')
-rw-r--r--docs/automation/command-scripting.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/automation/command-scripting.rst b/docs/automation/command-scripting.rst
index 7cf31232..db4724cd 100644
--- a/docs/automation/command-scripting.rst
+++ b/docs/automation/command-scripting.rst
@@ -83,10 +83,10 @@ Here is a simple example:
.. code-block:: python
- #!/usr/bin/env python
- print "delete firewall group address-group somehosts"
- print "set firewall group address-group somehosts address '192.0.2.3'"
- print "set firewall group address-group somehosts address '203.0.113.55'"
+ #!/usr/bin/env python3
+ print("delete firewall group address-group somehosts")
+ print("set firewall group address-group somehosts address '192.0.2.3'")
+ print("set firewall group address-group somehosts address '203.0.113.55'")
.. code-block:: none