From ecd6728df2359fab52e2d5dddb3a7e4ce7732596 Mon Sep 17 00:00:00 2001 From: Douglas Paz Date: Fri, 30 Nov 2018 15:59:55 -0300 Subject: [PATCH] Fix string formt compat python 2 --- portainer_cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portainer_cli/__init__.py b/portainer_cli/__init__.py index b1e5fca..d50985b 100755 --- a/portainer_cli/__init__.py +++ b/portainer_cli/__init__.py @@ -168,7 +168,7 @@ class PortainerCLI(object): def update_registry(self, id, name='', url='', authentication=False, username='', password=''): assert not authentication or (authentication and username and password) - registry_url = f'registries/{id}' + registry_url = 'registries/{}'.format(id) current = self.request(registry_url).json() data = { 'Name': name or current.get('Name'),