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

Avoid module to crash when dhcp service is not present #34

Merged
merged 3 commits into from
Aug 23, 2018

Conversation

dgdavid
Copy link
Member

@dgdavid dgdavid commented Aug 23, 2018

The expected behavior is to ask to user if want to install it first. This was broken when ServiceWidget was introduced and is fixed with this changes.

Since there is being used the new ServiceWidget[1] it is not necessary
to instance it twice, one per "dialog". This allows to prevent the
module crash when the service is not available, asking to user if want
to install it first (which is the expected behavior).

[1] https://github.com/yast/yast-yast2/blob/3586c81122b39acba5881c2720dae5b346444463/library/systemd/src/lib/yast2/service_widget.rb
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 16.257% when pulling d45f428 on feature/avoid-crash-when-service-absent into 307f27e on master.

Copy link

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@dgdavid dgdavid merged commit 62e07ed into master Aug 23, 2018
@dgdavid dgdavid deleted the feature/avoid-crash-when-service-absent branch August 23, 2018 10:40
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.

None yet

3 participants