// IsRootEnabled checks an instance to see if root access is enabled. It returns // True if root user is enabled for the specified database instance or False // otherwise. func IsRootEnabled(client *gophercloud.ServiceClient, id string) (bool, error) { return os.IsRootEnabled(client, id) }
func (c context) isRootEnabled() { enabled, err := instances.IsRootEnabled(c.client, c.instanceID) c.AssertNoErr(err) c.Logf("Is root enabled? %d", enabled) }