Skip to content

Commit

Permalink
Use run_test() for service.is_masked()
Browse files Browse the repository at this point in the history
Followup 3a027cc, we should expect exit code 0 or 1 here.
  • Loading branch information
philpep committed Sep 2, 2020
1 parent 370491b commit 2035db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testinfra/modules/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def is_valid(self):

@property
def is_masked(self):
cmd = self.run("systemctl is-enabled %s", self.name)
cmd = self.run_test("systemctl is-enabled %s", self.name)
return cmd.rc == 0 and cmd.stdout.strip() == "masked"


Expand Down

0 comments on commit 2035db0

Please sign in to comment.