py3: issue with incoming apt-sources-replace

Bug #1681582 reported by Simon Poirier
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Committed
Simon Poirier

Bug Description

sudo ./scripts/landscape-client -c root-client.conf > /tmp/client.log

cd landscape-server
source ./dev/setup-api
landscape-api create-repository-profile repo_prof
landscape-api associate-repository-profile repo_prof --all-computers
approve the activity in the UI

Check the logs
2017-04-10 21:24:50,962 ERROR [MainThread] ('Error occured running message handler %s with args %r %r.', 'landscape.manager.aptsources.AptSources._handle_repositories.<locals>.<lambda>()', (), {})
TypeError: write() argument must be str, not bytes

Additionally there will be an empty /etc/apt/sources.list.d/landscape-repo_prof.list instead of one with a comment and/or sources.

Related branches

Simon Poirier (simpoir)
description: updated
Simon Poirier (simpoir)
Changed in landscape-client:
assignee: nobody → Simon Poirier (simpoir)
status: New → In Progress
Changed in landscape-client:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.