File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1718,7 +1718,7 @@ def block(
1718
1718
path="/etc/hosts",
1719
1719
content="10.0.0.1 mars-one",
1720
1720
before=True,
1721
- regex =".*localhost",
1721
+ line =".*localhost",
1722
1722
)
1723
1723
1724
1724
# have two entries in /etc/host
@@ -1727,7 +1727,7 @@ def block(
1727
1727
path="/etc/hosts",
1728
1728
content="10.0.0.1 mars-one\\ n10.0.0.2 mars-two",
1729
1729
before=True,
1730
- regex =".*localhost",
1730
+ line =".*localhost",
1731
1731
)
1732
1732
1733
1733
# remove marked entry from /etc/hosts
@@ -1742,7 +1742,7 @@ def block(
1742
1742
name="add out of date warning to web page",
1743
1743
path="/var/www/html/something.html",
1744
1744
content= "<p>Warning: this page is out of date.</p>",
1745
- regex =".*<body>.*",
1745
+ line =".*<body>.*",
1746
1746
after=True
1747
1747
marker="<!-- {mark} PYINFRA BLOCK -->",
1748
1748
)
You can’t perform that action at this time.
0 commit comments