From d09e45ad755642edc1b5deb6b99cb15e70d03d19 Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Sun, 24 Jan 2016 18:32:00 +0100 Subject: [PATCH] Import the full salt.utils path + logging The debug log exposed private keys Related to saltstack/salt#27089 Saltcloud virtualbox provider --- salt/cloud/clouds/virtualbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/cloud/clouds/virtualbox.py b/salt/cloud/clouds/virtualbox.py index bc0d45f0c8..71151126c3 100644 --- a/salt/cloud/clouds/virtualbox.py +++ b/salt/cloud/clouds/virtualbox.py @@ -22,7 +22,7 @@ import logging from salt.exceptions import SaltCloudSystemExit import salt.config as config import salt.utils.cloud as cloud -from utils.virtualbox import vb_list_machines, vb_clone_vm, HAS_LIBS, vb_machine_exists, vb_destroy_machine, \ +from salt.utils.virtualbox import vb_list_machines, vb_clone_vm, HAS_LIBS, vb_machine_exists, vb_destroy_machine, \ vb_get_machine, vb_stop_vm, treat_machine_dict, vb_start_vm, vb_wait_for_network_address log = logging.getLogger(__name__) @@ -93,7 +93,7 @@ def create(vm_info): @type vm_info dict @return dict of resulting vm. !!!Passwords can and should be included!!! """ - log.debug("Creating virtualbox with %s" % vm_info) + log.debug("Creating virtualbox") try: # Check for required profile parameters before sending any API calls. if vm_info['profile'] and config.is_profile_configured(