summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2018-03-09 18:49:59 -0700
committermokha <mokha@cisco.com>2018-03-09 18:49:59 -0700
commit7f8726b4e8fa16b689e9bfc450bb61f747ef35ca (patch)
tree816f430b8b738643b9231f1ca413d4a5ea851733
parent334b70eeaff5b0f5b742f32eacf952e1677402d7 (diff)
use Socket.gethostname instead of `hostname`
-rwxr-xr-xexe/saml-kit2
1 files changed, 1 insertions, 1 deletions
diff --git a/exe/saml-kit b/exe/saml-kit
index 21e1cde..1e4244b 100755
--- a/exe/saml-kit
+++ b/exe/saml-kit
@@ -4,7 +4,7 @@ require 'saml/kit/cli'
samlkitrc = ENV.fetch('SAMLKITRC', File.join(Dir.home, '.samlkitrc'))
Saml::Kit.configure do |configuration|
- configuration.entity_id = ENV.fetch('ENTITY_ID', `hostname`.chomp)
+ configuration.entity_id = ENV.fetch('ENTITY_ID', Socket.gethostname.chomp)
configuration.registry = Saml::Kit::Cli::YamlRegistry.new(samlkitrc)
configuration.logger.level = Logger::FATAL
end