~ubuntu-branches/ubuntu/vivid/juju-core/vivid-proposed

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/joyent/storage.go

  • Committer: Package Import Robot
  • Author(s): Curtis C. Hovey
  • Date: 2015-09-29 19:43:29 UTC
  • mfrom: (47.1.4 wily-proposed)
  • Revision ID: package-import@ubuntu.com-20150929194329-9y496tbic30hc7vp
Tags: 1.24.6-0ubuntu1~15.04.1
Backport of 1.24.6 from wily. (LP: #1500916, #1497087)

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        if strings.Contains(name, "/") {
169
169
                var parents []string
170
170
                dirs := strings.Split(name, "/")
171
 
                for i, _ := range dirs {
 
171
                for i := range dirs {
172
172
                        if i < (len(dirs) - 1) {
173
173
                                parents = append(parents, strings.Join(dirs[:(i+1)], "/"))
174
174
                        }