diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-02 19:58:21 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-04-02 19:58:21 -0700 |
commit | 609b2aaf7e71ceaf42203176145de4e83b99055b (patch) | |
tree | 913bd8f5dd70b747a1ca052ba19623184c0334d3 | |
parent | 454f51ee4f5fedf7b32506150566d80e458ba8fb (diff) | |
download | chef-lcg/fix-windows-hostname-validation.tar.gz |
need to escape '.' in regexlcg/fix-windows-hostname-validation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/resource/hostname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb index 497176f45d..243c86287b 100644 --- a/lib/chef/resource/hostname.rb +++ b/lib/chef/resource/hostname.rb @@ -203,7 +203,7 @@ class Chef end else # windows - raise "Windows hostnames cannot contain a period." if new_resource.hostname.match?(/./) + raise "Windows hostnames cannot contain a period." if new_resource.hostname.match?(/\./) # suppress EC2 config service from setting our hostname if ::File.exist?('C:\Program Files\Amazon\Ec2ConfigService\Settings\config.xml') |