From 163111fae6ca10b68c0fd13de41ddb7be2a1bceb Mon Sep 17 00:00:00 2001 From: Jason Cusick Date: Wed, 15 Jun 2016 15:19:21 -0400 Subject: [PATCH] Regular expressions weren't returning the proper state because they were running case insensitive. --- lib/lxc/container.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lxc/container.rb b/lib/lxc/container.rb index 5be9a0e..a66991e 100644 --- a/lib/lxc/container.rb +++ b/lib/lxc/container.rb @@ -53,11 +53,11 @@ class Container # RegEx pattern for extracting the container state from the "lxc-info" # command output. - REGEX_STATE = /^state:\s+([\w]+)$/ + REGEX_STATE = /^state:\s+([\w]+)$/i # RegEx pattern for extracting the container PID from the "lxc-info" # command output. - REGEX_PID = /^pid:\s+([-\d]+)$/ + REGEX_PID = /^pid:\s+([-\d]+)$/i # Returns the container name #