mirror of
				https://github.com/borgbase/ansible-role-borgbackup.git
				synced 2025-11-04 01:19:32 +01:00 
			
		
		
		
	Fix BorgBase repository creation (#66)
This commit is contained in:
		
							parent
							
								
									3bd0b3d497
								
							
						
					
					
						commit
						c94da43a80
					
				@ -181,10 +181,11 @@ def main():
 | 
				
			|||||||
    if repo_id is None:
 | 
					    if repo_id is None:
 | 
				
			||||||
        # Add new repo using the key
 | 
					        # Add new repo using the key
 | 
				
			||||||
        res = add_repo(key_id)
 | 
					        res = add_repo(key_id)
 | 
				
			||||||
 | 
					        repo_exist = False
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        # Edit the repo
 | 
					        # Edit the repo
 | 
				
			||||||
        res = edit_repo(repo_id, key_id)
 | 
					        res = edit_repo(repo_id, key_id)
 | 
				
			||||||
 | 
					        repo_exist = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Setup information for Ansible
 | 
					    # Setup information for Ansible
 | 
				
			||||||
    result = dict(
 | 
					    result = dict(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user