A police raid on the homes of two Scarborough friends yielded just over half-a-kilogramme of cannabis that they were using to feed their own large drug habits, a court heard.
The drug, together with scales and other equipment were discovered after police executed search warrants at the homes of David Lyons, 31, of Sandringham Street, and 27-year-old Damien Waite, of Clark Street, on April 18, this year.
Both men appeared before York Crown Court on Wednesday, October 23 for sentencing.
The pair had previously admitted joint charge of possessing the drug with intent to supply it.
Alan Mitcheson, prosecuting, told the court that the 561gms of cannabis found at the two addresses had a street value of at least £5,600.
In interview the pair told the police that they would buy in bulk as it reduced the costs to them and also allowed them to serve their own large habits.
However, they also admitted that from time to time supply to a small circle of friends at cost price, making no profit for themselves from the sale of the Class B drug.
After the Recorder of York, Judge Stephen Ashurst, said that he was prepared to suspend any custodial sentence, there was no mitigation put forward on behalf of either man.
He court heard that the pair were lightly convicted, having committed offences as youths and no court appearance, other than for minor matters, for many years.
Passing sentence, the judge said that he accepted that there was no question of commercial dealing by either man.
However, he added that due to the large quantity of cannabis involved it meant that the offence had to be marked by a custodial sentence for Lyons and Waite.
As part of the sentence the judge said that he was also incorporating a requirement to help both men receive help for their drug habit in a bid to ensure they did not appear before the court again and face a harsher sentence.
Both were sentenced to nine months imprisonment, suspended for two years.
They were also placed under 12 months supervision and ordered to undergo a drug rehabilitation programme, which will last for nine months.