Revision a77acc4a
Added by Thomas McKay about 9 years ago
lib/hammer_cli_csv/organizations.rb | ||
---|---|---|
51 | 51 |
def import |
52 | 52 |
@existing = {} |
53 | 53 |
@api.resource(:organizations).call(:index, {:per_page => 999999})['results'].each do |organization| |
54 |
@existing[organization['name']] = organization['label'] if organization
|
|
54 |
@existing[organization['name']] = organization['id'] if organization
|
|
55 | 55 |
end |
56 | 56 |
|
57 | 57 |
thread_import do |line| |
Also available in: Unified diff
a lot of fixes and updates across many resources to match katello updates