Skip to content

Commit bb6aecc

Browse files
authored
Build broke on Windows (#920)
1 parent 512aa7d commit bb6aecc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

providers/activedir/getzones_windows.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
var checkPS sync.Once
1212
var psAvailible = false
1313

14-
func (c *adProvider) getRecords(domainname string) ([]byte, error) {
14+
func (c *activedirProvider) getRecords(domainname string) ([]byte, error) {
1515

1616
// If we are using PowerShell, make sure it is enabled
1717
// and then run the PS1 command to generate the adzonedump file.
@@ -41,7 +41,7 @@ func (c *adProvider) getRecords(domainname string) ([]byte, error) {
4141
return c.readZoneDump(domainname)
4242
}
4343

44-
func (c *adProvider) isPowerShellReady() bool {
44+
func (c *activedirProvider) isPowerShellReady() bool {
4545
query, _ := c.powerShellExec(`(Get-Module -ListAvailable DnsServer) -ne $null`, true)
4646
q, err := strconv.ParseBool(strings.TrimSpace(string(query)))
4747
if err != nil {
@@ -50,7 +50,7 @@ func (c *adProvider) isPowerShellReady() bool {
5050
return q
5151
}
5252

53-
func (c *adProvider) powerShellDoCommand(command string, shouldLog bool) error {
53+
func (c *activedirProvider) powerShellDoCommand(command string, shouldLog bool) error {
5454
if c.fake {
5555
// If fake, just record the command.
5656
return c.powerShellRecord(command)
@@ -59,7 +59,7 @@ func (c *adProvider) powerShellDoCommand(command string, shouldLog bool) error {
5959
return err
6060
}
6161

62-
func (c *adProvider) powerShellExec(command string, shouldLog bool) ([]byte, error) {
62+
func (c *activedirProvider) powerShellExec(command string, shouldLog bool) ([]byte, error) {
6363
// log it.
6464
err := c.logCommand(command)
6565
if err != nil {

0 commit comments

Comments
 (0)