felimwhiteley / libsrvrmgrd-osx

Automatically exported from code.google.com/p/libsrvrmgrd-osx
5 stars 2 forks source link

Issue with Server Roles #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Run serverRole on script on a server that doesn't have OpenDirectory running as 
Master or Slave

What is the expected output? What do you see instead?

Expect configured services to show, instead you get error.

What version of the product are you using? On what operating system? Are
you using the ini config file?

Produces same result on updated 10.5 Server and 10.6 Server, using INI on 
latest version.

Please provide any additional information below.

Fixed by adding else statement to Role:

if serverRoleStatus['configured']:
        serviceStatus = "%s\t%s\n" % (serviceStatus, serverRole)
else:
        serviceStatus = "No configured Roles\n"

Original issue reported on code.google.com by malaghan...@gmail.com on 23 Jun 2011 at 3:55

GoogleCodeExporter commented 9 years ago
That's great, I've rolled in your code so it'll make the next release. Or you 
could pull it out of SVN if you wanted to get it immediately.

Thanks,

Félim

Original comment by felimwhiteley on 23 Jun 2011 at 8:37