37
39
"""Adds a pairing record with ubuntu one when needed."""
43
management_db = db_class("management", uri=uri, create=True, ctx=None)
40
44
# we indeed have credentials to add to the pairing records
41
45
# but first we ensure that the required view is present
42
46
if not management_db.view_exists(U1_PAIR_RECORD, U1_PAIR_RECORD):