@@ -183,7 +183,7 @@ func (d *Driver) GetURL() (string, error) {
183
183
log .Debugf ("GetURL called" )
184
184
ip , err := d .GetIP ()
185
185
if err != nil {
186
- log .Warnf ("Failed to get IP: %s" , err )
186
+ log .Debugf ("Failed to get IP: %s" , err )
187
187
return "" , err
188
188
}
189
189
if ip == "" {
@@ -300,7 +300,7 @@ func (d *Driver) Create() error {
300
300
return err
301
301
}
302
302
303
- log .Infof ("Creating SSH key..." )
303
+ log .Debug ("Creating SSH key..." )
304
304
if err := ssh .GenerateSSHKey (d .GetSSHKeyPath ()); err != nil {
305
305
return err
306
306
}
@@ -325,12 +325,12 @@ func (d *Driver) Create() error {
325
325
}
326
326
}
327
327
328
- log .Debugf ("Creating VM data disk..." )
328
+ log .Debug ("Creating VM data disk..." )
329
329
if err := d .generateDiskImage (d .DiskSize ); err != nil {
330
330
return err
331
331
}
332
332
333
- log .Debugf ("Defining VM..." )
333
+ log .Debug ("Defining VM..." )
334
334
tmpl , err := template .New ("domain" ).Parse (domainXMLTemplate )
335
335
if err != nil {
336
336
return err
@@ -559,6 +559,9 @@ func (d *Driver) getIPByMacFromSettings(mac string) (string, error) {
559
559
}
560
560
statusFile := fmt .Sprintf (dnsmasqStatus , bridge_name )
561
561
data , err := ioutil .ReadFile (statusFile )
562
+ if err != nil {
563
+ return "" , err
564
+ }
562
565
type Lease struct {
563
566
Ip_address string `json:"ip-address"`
564
567
Mac_address string `json:"mac-address"`
@@ -568,7 +571,7 @@ func (d *Driver) getIPByMacFromSettings(mac string) (string, error) {
568
571
569
572
err = json .Unmarshal (data , & s )
570
573
if err != nil {
571
- log .Warnf ("Failed to decode dnsmasq lease status: %s" , err )
574
+ log .Debugf ("Failed to decode dnsmasq lease status: %s" , err )
572
575
return "" , err
573
576
}
574
577
for _ , value := range s {
0 commit comments