Skip to content

Commit

Permalink
handle privatekey regardless of the provider
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Aug 8, 2024
1 parent ccd137e commit 1341f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def create_vm(self, name, profile=None, overrides={}, customprofile={}, k=None,
cmds.extend(notifycmds)
ips = [overrides[key] for key in overrides if re.match('ip[0-9]+', key)]
netmasks = [overrides[key] for key in overrides if re.match('netmask[0-9]+', key)]
if privatekey and self.type == 'kvm':
if privatekey:
privatekeyfile = None
publickeyfile = common.get_ssh_pub_key()
if publickeyfile is not None:
Expand Down

0 comments on commit 1341f3e

Please sign in to comment.