Skip to content

Commit

Permalink
Add is_restarting in docker module (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiAbbasi95 committed Jan 11, 2023
1 parent 5c4fe2a commit 5d558f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testinfra/modules/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def inspect(self):
def is_running(self):
return self.inspect()["State"]["Running"]

@property
def is_restarting(self):
return self.inspect()["State"]["Restarting"]

@property
def id(self):
return self.inspect()["Id"]
Expand Down

0 comments on commit 5d558f0

Please sign in to comment.