aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorZog2018-05-28 10:56:16 +0200
committerZog2018-05-28 10:56:16 +0200
commita14ab8ed2c24ae52b8227c49b0b8e2126b46765c (patch)
treef48a4fcb493fed69d2c77fc7f21d10f1939a2a15 /app
parentac79e03aced3969df8626f15165a0f6e6f783295 (diff)
downloadchouette-core-a14ab8ed2c24ae52b8227c49b0b8e2126b46765c.tar.bz2
Fix SimpleInterfaces specs
Diffstat (limited to 'app')
-rw-r--r--app/models/simple_interfaces_group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/simple_interfaces_group.rb b/app/models/simple_interfaces_group.rb
index 53e28c36a..1e13bd0b5 100644
--- a/app/models/simple_interfaces_group.rb
+++ b/app/models/simple_interfaces_group.rb
@@ -31,7 +31,7 @@ class SimpleInterfacesGroup
name = "### #{self.name} ###"
centered_name = " " * ([width - name.size, 0].max / 2) + name
banner = [centered_name]
- banner << "Output to: #{shared_options[:output_dir]}" if shared_options[:output_dir]
+ banner << "Output to: #{shared_options[:output_dir]}" if shared_options && shared_options[:output_dir]
banner << ""
banner << @interfaces.each_with_index.map do |interface, i|
if interface[:interface].status.present?