diff --git a/lib/charms/operator_libs_linux/v2/snap.py b/lib/charms/operator_libs_linux/v2/snap.py index 37cbe3e9..be5810bd 100644 --- a/lib/charms/operator_libs_linux/v2/snap.py +++ b/lib/charms/operator_libs_linux/v2/snap.py @@ -692,7 +692,7 @@ def __init__( socket_path: str = "/run/snapd.socket", opener: Optional[urllib.request.OpenerDirector] = None, base_url: str = "http://localhost/v2/", - timeout: float = 5.0, + timeout: float = 30.0, ): """Initialize a client instance. @@ -701,7 +701,7 @@ def __init__( opener: specifies an opener for unix socket, if unspecified a default is used base_url: base url for making requests to the snap client. Defaults to http://localhost/v2/ - timeout: timeout in seconds to use when making requests to the API. Default is 5.0s. + timeout: timeout in seconds to use when making requests to the API. Default is 30.0s. """ if opener is None: opener = self._get_default_opener(socket_path)