def Run(self, args):
        """See ssh_utils.BaseSSHCLICommand.Run."""

        oslogin_client = client.OsloginClient(self.ReleaseTrack())
        user_email = properties.VALUES.core.account.Get()

        keys = oslogin_utils.GetKeysFromProfile(user_email, oslogin_client)
        return keys
예제 #2
0
    def Run(self, args):
        """See ssh_utils.BaseSSHCLICommand.Run."""

        oslogin_client = client.OsloginClient(self.ReleaseTrack())
        user_email = gaia.GetAuthenticatedGaiaEmail(oslogin_client.client.http)

        keys = oslogin_utils.GetKeysFromProfile(user_email, oslogin_client)
        return keys