func (driver *Driver) setUserSubscription() error { if len(driver.PublishSettingsFilePath) != 0 { err := azure.ImportPublishSettingsFile(driver.PublishSettingsFilePath) if err != nil { return err } return nil } err := azure.ImportPublishSettings(driver.SubscriptionID, driver.SubscriptionCert) if err != nil { return err } return nil }
func (d *Driver) setUserSubscription() error { if d.PublishSettingsFilePath != "" { return azure.ImportPublishSettingsFile(d.PublishSettingsFilePath) } return azure.ImportPublishSettings(d.SubscriptionID, d.SubscriptionCert) }