mirror of
https://github.com/Hopiu/portainer-cli.git
synced 2026-03-16 22:10:34 +00:00
Fix string formt compat python 2
This commit is contained in:
parent
fddf664cc2
commit
ecd6728df2
1 changed files with 1 additions and 1 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue