Skip to content

Commit

Permalink
Merge pull request garethr#331 from hunner/fix_spec
Browse files Browse the repository at this point in the history
Fix spec for platforms with docker 1.7
  • Loading branch information
garethr committed Aug 21, 2015
2 parents a6cdbf6 + 13fd97e commit 43947b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class { 'docker':
registry_port = 5000
@registry_address = "#{registry_host}:#{registry_port}"
@registry_email = '[email protected]'
@config_file = fact('osfamily') == 'RedHat' ? '~/.dockercfg' : '~/.docker/config.json'
@config_file = shell('docker --version|cut -d"/" -f2') > "1.7" ? '~/.dockercfg' : '~/.docker/config.json'
@manifest = <<-EOS
class { 'docker': }
docker::run { 'registry':
Expand Down

0 comments on commit 43947b2

Please sign in to comment.