Skip to content

Commit a7fe8bf

Browse files
committed
Remove the beta flag/warning from the docker connector.
1 parent 4e091aa commit a7fe8bf

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

docs/connectors.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pyinfra @local ...
4141

4242
## `@docker`
4343

44-
**Note**: this connector is in beta!
4544

4645
The `@docker` connector allows you to build Docker containers using pyinfra.
4746

pyinfra/api/connectors/docker.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,17 @@
88
from pyinfra import local, logger
99
from pyinfra.api import QuoteString, StringCommand
1010
from pyinfra.api.exceptions import ConnectError, InventoryError, PyinfraError
11-
from pyinfra.api.util import get_file_io, memoize
11+
from pyinfra.api.util import get_file_io
1212
from pyinfra.progress import progress_spinner
1313

1414
from .local import run_shell_command as run_local_shell_command
1515
from .util import make_unix_command
1616

1717

18-
@memoize
19-
def show_warning():
20-
logger.warning('The @docker connector is in beta!')
21-
22-
2318
def make_names_data(image=None):
2419
if not image:
2520
raise InventoryError('No docker base image provided!')
2621

27-
show_warning()
28-
2922
# Save the image as the hostname, the image as data, @docker group
3023
yield '@docker/{0}'.format(image), {'docker_image': image}, ['@docker']
3124

0 commit comments

Comments
 (0)