Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding abstract errors and Windows workflow #5

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

fabi200123
Copy link
Contributor

  • Adding workflow for Windows
  • Adding abstract errors for config validation

@gabriel-samfira gabriel-samfira merged commit a0f67ce into cloudbase:main Apr 19, 2024
2 checks passed
@@ -122,7 +122,7 @@ func (l *LXD) GetInstanceType() LXDImageType {
func (l *LXD) Validate() error {
if l.UnixSocket != "" {
if _, err := os.Stat(l.UnixSocket); err != nil {
return fmt.Errorf("could not access unix socket %s: %q", l.UnixSocket, err)
return fmt.Errorf("could not access unix socket %s: %w", l.UnixSocket, err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self. Disable the Unix socket handling when running on Windows. Only remote TCP connections will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants